help-octave
[Top][All Lists]
Advanced

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

Re: Changing plot fonts linux


From: Dmitri A. Sergatskov
Subject: Re: Changing plot fonts linux
Date: Thu, 9 Apr 2015 11:29:38 -0500

On Thu, Apr 9, 2015 at 6:25 AM, Juan Pablo Carbajal <address@hidden> wrote:
Hi,

It seems that changing a font is not a trivial issue any more. This
tutorials are not working for me in 4.0.0-rc2 (after fixing the paths
to point to my ttf fonts)

https://engineeringliberty.wordpress.com/2011/10/07/making-great-plots-in-octave-and-matlab-too/

I tried with gnuplot (png and pngcairo) and fltk.

set(0, "defaultaxesfontname", <font-name>)

Is also not working.

How do you change fonts in a plot?



>> set(0, 'DefaultAxesFontname', 'LiberationSerif,14')
>> set(0, 'DefaultTextFontname', 'LiberationSerif,14')
>> plot([-1,1],[-1,1])
>> text(0,0, "Test LiberationSerif")
>> print('t1.pdf', '-dpdfcairo')
>> print('t1.png', '-dpngcairo')

Works for me.
 
​Dmitri.
--

Attachment: t1.png
Description: PNG image


reply via email to

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