[Top][All Lists]

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

Re: Set default font size and font face

From: Ben Abbott
Subject: Re: Set default font size and font face
Date: Mon, 27 Apr 2009 07:44:23 -0400

On Apr 27, 2009, at 7:37 AM, Johan Lans wrote:

Ben Abbott skrev:

On Apr 27, 2009, at 4:17 AM, hadoque wrote:

Hi I wonder how to set default font size and font face for plots.
I've managed to set default linewidth with set (0,
"defaultlinelinewidth", 2) and I guess default font is in the same
format, I just can't figure out what the default*name* . thanks a lot
/ Johan

The commands below should do what you want.

set (0, "defaultaxesfontname", "Helvetica")
set (0, "defaultaxesfontsize", 12)
set (0, "defaulttextfontname", "Helvetica")
set (0, "defaulttextfontsize", 12)

If you have problems, let us know what version of octave you are running.


The text part works fine, the axes part gives an error message

   warning: set: invalid property `fontname'

   warning: set: invalid property `fontsize'

I'm using octave version 3.0.1


3.0.5 has just been released. I recommend you upgrade.


reply via email to

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