help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two line plot titles, xlabels, Greek, etc. Problems


From: Doug Stewart
Subject: Re: Two line plot titles, xlabels, Greek, etc. Problems
Date: Wed, 3 Dec 2014 16:12:56 -0500



On Wed, Dec 3, 2014 at 4:00 PM, Martin Senator <address@hidden> wrote:
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


_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


works for me with ubuntu and octave 3.8.1

--
DASCertificate for 206392

Attachment: Screenshot from 2014-12-03 16:10:39.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]