Setting Gnuplot to "aqua" on Mac OS X. (Tiger)
Ben Abbott
bpabbott at mac.com
Mon Apr 27 05:42:34 CDT 2009
On Apr 26, 2009, at 11:51 PM, greggallen at gmail.com wrote:
> Hi:
>
> I have no problem using Gnuplot, when I use it alone from the command
> line, by changing my environment variable TERM from "xterm-color" to
> "aqua".
>
> When I call "plot" from octave, though, it won't use the environment
> variable but gives me this:
>
> octave:4> plot(x,y)
> gnuplot> plot "-" using ($1):($2) axes x1y1 title "" with lines
> linestyle 1 ;
> ^
> line 0: use 'set term' to set terminal type first
> gnuplot> 0 0
> ^
> line 0: invalid command
>
> I don't know HOW to set he terminal type from octave. I need to pass
> "aqua" to Gnuplot when it is called from Octave.
>
> Any suggestions?
>
> I'm totally new to both Gnuplot and Octave, although I have a bit of
> experience with MATLAB, back in the mid-nineties.
>
> Thanks in advance.
>
> Sincerely,
Leave "TERM" as it was and set "GNUTERM" instead. For me
export GNUTERM=aqua
$ echo $TERM
xterm-color
$ echo $GNUTERM
aqua
For the aqua terminal to work, you'll need AquaTerm to be installed.
Ben
More information about the Help-octave
mailing list