help-octave
[Top][All Lists]
Advanced

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

Re: Changing plot fonts linux


From: Juan Pablo Carbajal
Subject: Re: Changing plot fonts linux
Date: Thu, 9 Apr 2015 21:45:41 +0200

On Thu, Apr 9, 2015 at 6:29 PM, Dmitri A. Sergatskov
<address@hidden> wrote:
> 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.
> --
>
Indeed, that works.
It seems that the property names have changed.
Thanks a lot.



reply via email to

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