[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Two line plot titles, xlabels, Greek, etc. Problems
From: |
Martin Senator |
Subject: |
Two line plot titles, xlabels, Greek, etc. Problems |
Date: |
Wed, 3 Dec 2014 16:00:21 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
When plotting, two line titles and xlabels don't work;
neither do Greek letters, subscripts, and math symbols.
See the annotated diary below and the attached PostScript plot.
+ ## file test12.m; copied from test11.m on 12/2/14 @ 15:47 or so.
+ ## purpose: to explore newline and font problems in plot;
+ ## command = diary on, echo on, more off, test12;
+ ## construct a two line title string with Greek letter, subscript, and
+ ## math symbol:
+ title1 = strcat ("Some Words", " by {/Symbol w}_{0 hor} \\approx\t", "end")
title1 = Some Words by {/Symbol w}_{0 hor} \approx end
+ title2 = "line2 of title."
title2 = line2 of title.
+ titlestr = sprintf ("%s\n%s", title1, title2)
titlestr = Some Words by {/Symbol w}_{0 hor} \approx end
line2 of title.
+ ## construct a two line xlabel string with an included time stamp:
+ xlabel1 = "abscissa, x"
xlabel1 = abscissa, x
+ now = ctime (time)
now = Wed Dec 03 15:26:36 2014
+ tnow = strtrim (now)
tnow = Wed Dec 03 15:26:36 2014
+ xlabel2 = strcat ("filename = test12.m,\t", "stamp =\t", tnow, "\t end.")
xlabel2 = filename = test12.m, stamp = Wed Dec 03 15:26:36 2014 end.
+ xlabelstr = sprintf ("%s\n%s", xlabel1, xlabel2)
xlabelstr = abscissa, x
filename = test12.m, stamp = Wed Dec 03 15:26:36 2014 end.
+ ylabelstr = "ylabel, y";
+ ## draw the plot:
+ ## default graphics_toolkit is "fltk": resetting to "gnuplot";
+ graphics_toolkit = "gnuplot"
graphics_toolkit = gnuplot
+ clf
+ h1 = figure (1, "visible", "on")
h1 = 1
+ x = linspace (0, 10, 11);
+ y = x .* x;
+ hline1 = line (x, y, "marker", "s");
+ xlabel (xlabelstr);
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
+ ylabel (ylabelstr);
+ title (titlestr);
warning: ft_render: skipping missing glyph for character '9'
warning: ft_render: skipping missing glyph for character '9'
+ set (hline1, "color", "r", "linewidth", 2, "markersize", 8, "linestyle",
"none");
+ print (h1, "-color", "plot12.ps");
+ uname ()
ans =
scalar structure containing the fields:
sysname = Linux
nodename = senator2
release = 3.5.0-54-generic
version = #81~precise1-Ubuntu SMP Tue Jul 15 04:05:58 UTC 2014
machine = i686
+ version
ans = 3.8.1
[I built octave on this machine from:
octave_3.8.1.orig.tar.bz2, dated Sep 23 16:27 (2014)].
+ ## on screen: Greek doesn't work; and spacing of xlabel2 (tabs) don't work.
+ ## in plot12.ps: Greek doesn't work; subscript doesn't work; two lines
+ ## commands don't work; approx command doesn't work; but spacing in the
+ ## xlabel seems OK.
+ now = ctime (time)
now = Wed Dec 03 15:26:37 2014
+ diary ('off')
Martin
plot12.ps
Description: PostScript document
test12.m
Description: Text document
- Two line plot titles, xlabels, Greek, etc. Problems,
Martin Senator <=