help-octave
[Top][All Lists]
Advanced

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

Re: Plotting issues: arrows and label font size


From: Ben Abbott
Subject: Re: Plotting issues: arrows and label font size
Date: Thu, 12 Nov 2009 20:16:57 -0500

On Nov 12, 2009, at 7:33 AM, address@hidden wrote:

>> Second: axis label sizes.  I think I'm doing the right thing by setting
>> 
>> xlabel('X','fontsize',16)
>> 
>> ... but although getting the properties of the label with get() reveals
>> the fontsize value has been set correctly, when I use the print command
>> to output an EPS file the font size is not changed.  Is it me or Octave
>> who is doing things wrong? :-P
> 
> 
> I use
> 
> xlabel("X","fontsize", 16)
> print -deps -F:10 foo.eps
> 
> and that works well. It prints the xlabel with font size 16 and the
> values on the axes in font size 10. (at least for octave 3.0, gnuplot
> 4.5 using wxt terminal)

The above works for 3.0.x, but will not work for the more recent 3.2.x builds.

Octave's development has been progressing toward compatibility with Matlab. 
However, it is not there yet. The commands below will produce a plot with 10pt 
fonts for the axis tick labels and for the ylabel. The xlabel will be size 16.

        x = 0:10;
        plot (x, x)
        set (gca, "fontsize", 20)
        xlabel ("fontsize=16", "fontsize", 32)
        ylabel ("fontsize=10", "fontsize", 20)
        print -depsc foo.eps

The fontsizes are set to twice the targeted values as the gnuplot eps terminal 
scales the fontsize down by a factor of two (this is intentional, and not a 
bug).

Ben


reply via email to

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