octave gnuplot interaction for the purpose of using a different font
John W. Eaton
jwe at octave.org
Wed May 6 22:02:49 CDT 2009
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