octave gnuplot interaction for the purpose of using a different font

Matt Funk mafunk at nmsu.edu
Thu May 7 10:26:58 CDT 2009


Thanks,

it works. I had tried putenv before but i don't know i did wrong ... grrrr 
(lots of wasted time). I must have mispelled GNUPLOT_DEFAULT_GDFONT or 
something.

Anyway, thanks for all the help

Sorry for the bother,
matt


On Wednesday 06 May 2009, John W. Eaton wrote:
> On  6-May-2009, Matt Funk wrote:
> | But is there any way to set GNUPLOT_DEFAULT_GDFONT from within the
> | script? Straight from my script is the following:
> | system('export
> | GNUPLOT_DEFAULT_GDFONT=/usr/share/fonts/truetype/msttcorefonts/Arial_Bold
> |.ttf'); Why does that not work. Does the octave script open up its own
> | shell?
>
> Yes, so when the shell that is run by the system function exits, your
> variable disappears.  And I don't think would be exported in Octave's
> environment anyway.  Try
>
>   putenv ("GNUPLOT_DEFAULT_GDFONT", "/usr/...");
>
> instead.
>
> jwe




More information about the Help-octave mailing list