|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Set default font size and font faceHi
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
|
|
|
Re: Set default font size and font faceOn 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. Ben _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Set default font size and font faceBen 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. > > Ben > > > warning: set: invalid property `fontname' warning: set: invalid property `fontsize' I'm using octave version 3.0.1 /Johan _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Set default font size and font faceOn 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. >> >> Ben >> > 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 > > /Johan 3.0.5 has just been released. I recommend you upgrade. http://www.gnu.org/software/octave/download.html Ben _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Set default font size and font faceI'll try that. Thanks
/Johan Ben Abbott skrev: > > 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. >>> >>> Ben >>> >> 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 >> >> /Johan > > 3.0.5 has just been released. I recommend you upgrade. > > http://www.gnu.org/software/octave/download.html > > Ben > > > _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Set default font size and font faceSo if someone is stuck using 3.0.1 for the time being, is it impossible to fix it?
Michael
|
|
|
Re: Set default font size and font faceOn Wed, Aug 5, 2009 at 2:39 PM, mcoughlin<michael.w.coughlin@...> wrote:
> > So if someone is stuck using 3.0.1 for the time being, is it impossible to > fix it? > > Michael > You try old-fashioned way: print("myfile.eps", "-sepsc2", "-FTimes-Roman:18") that should change axis fonts in the print file (but not on scree). Dmitri. -- _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
| Free embeddable forum powered by Nabble | Forum Help |