ylabel kills plot?

Ben Abbott bpabbott at mac.com
Thu Jul 23 06:15:50 CDT 2009


On Jul 23, 2009, at 3:28 AM, Matthias Brennwald wrote:

> Dear All
>
> Consider the following code:
>
> -------
> plot (rand(1,10));
> xlabel ('x-label','fontsize',22);
> ylabel ('y-label','fontsize',22);
> -------
>
> For some reason, this does not produce the expected plot. I just get
> an empty plot window. If I omit the 'fontsize',22 part, everything
> works as expected. What am I doing wrong?
>
> (This is on Mac OS X with Octave 3.2.0 and gnuplot 4.2 patchlevel 5,
> both from MacPorts.)
>
> Matthias

I get a plot window with the line and the ticklabels, but no x/y labels.

When I change the fontname to "Times", everything works

> plot (rand(1,10));
> xlabel ('x-label','fontsize',22,'fontname','Times');
> ylabel ('y-label','fontsize',22,'fontname','Times');

I assume the default x11 font does not support 22pt.

Ben

p.s. I'm also running Mac OSX 10.5.7 with xquartz 2.3.3 and Gnuplot  
4.2.5.




More information about the Help-octave mailing list