[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnuplot error in Octave
Re: Gnuplot error in Octave
Fri, 18 Jan 2008 16:06:03 -0800
My problem is solved. I answered your questions below. Thank you very
On Jan 18, 2008, at 3:45 PM, Thomas Treichl wrote:
I install Gnuplot.app from the same package of Octave.dmg, which I
download from Octave-Forge. I place these two app in the /
Applications folder. Octave automatically finds gnuplot to plot,
but I got error on gnuplot. I also made link to Octave and Gnuplot
such that I can open them whenever I need in Terminal.app.
The result of which gnuplot is
where is the link pointing to.
Thanks for your response.
I think you have one of the problems that some users already
reported. Something on their Mac influences Gnuplot.app and further
tells Gnuplot.app to use some strange backend driver. In your case
this is 'aquax' and I don't know who/what wants to set aquax for
Gnuplot. I may copy a summary from an older email here to not must
rewrite everything new, please check (and give feedback) if one of
these settings match your criteria:
- The only thing that I can see and I don't know what it is for is
the manual installation of AquaTerm - an installation of AquaTerm is
not required if using the Gnuplot.app that comes with the octave-
*.dmg. Gnuplot.app brings its own working AquaTerm framework that is
installed in /Applications/Gnuplot.app/Contents/Resources/lib. Maybe
the problem comes with that AquaTerm.app?!
Do I need to uninstall AuqaTerm.app?
No. I didn't find .gnuplot file in my home directory. Should I need to
- Can you see a .gnuplot file in your home directory? If yes what's
MyMac:~$ cat ~/.gnuplot
No bug. After export GNUTERM=aqua, the gnuplot use terminal "aqua" as
default and works find. The plotting is right.
- If you do
MyMac:~$ export GNUTERM=aqua
gnuplot> plot sin(x)/x
is the bug still there?
In my case is, if I run octave in Terminal.app, not xterm, the plot in
octave went wrong when calling gnuplot. But now it works fine after I
export GNUTERM=aqua. I added this line into my bash .profile file.
- gnuplot provides the x11 terminal type for use with X servers. This
terminal type is set automatically at startup if the DISPLAY
variable is set, if the TERM environment variable is set to xterm,
the -display command line option is used.
- If GNUTERM is defined, it is used as the name of the terminal type
used. This overrides any terminal type sensed by gnuplot on start-
is itself overridden by the .gnuplot (or equivalent) start-up file
start-up (p. 34)) and, of course, by later explicit changes.
- On Unix, HOME is used as the name of a directory to search for a
.gnuplot file if none is found in the current directory.
- GNUPLOT_LIB may be used to define additional search directories
and command files. The variable may contain a single directory name,
list of directories separated by a platform-specific path separator,
: on Unix, or ; on DOS/Windows/OS/2/Amiga platforms. The contents
of GNUPLOT LIB are appended to the loadpath variable, but not saved
the save and save set commands.