From help-octave-request at bevo dot che dot wisc dot edu Wed Jan 7 15:52:17 2004 Subject: Re: Octave/OS X Aquaterm problems (bugs or me?) From: Per Persson To: "Henry F. Mollet" , Joe Koski Cc: help-octave at bevo dot che dot wisc dot edu Date: Wed, 7 Jan 2004 22:51:59 +0100 On Jan 4, 2004, at 23:27, Joe Koski wrote: > As a relatively new Octave user, I having some problems with the Mac OS > X/Aquaterm graphics interface, and I've not had enough experience to > determine if the problems are me, or the Aquaterm interface itself. > > By the way, Aquaterm looks much better to me than X11, and I really > like > being able to print graphics directly from Aquaterm, rather than > having to > do replots via another graphics driver. > > First problem: When I try to use figure.m, I get the error message > > octave:1> figure(1) > error: figure: requires X11 and valid DISPLAY > error: evaluating if command near line 42, column 7 > error: evaluating if command near line 41, column 5 > error: evaluating if command near line 40, column 3 > error: called from `figure' in file > `/sw/share/octave/2.1.46/site/m/octave-forge/MacOSX/figure.m' > octave:1> > > This occurs apparently while I'm using (or at least I think I'm using) > the > octave-forge Mac OS X version of figure.m. This occurs even after I've > done > "gset terminal aqua." Do I also need to setenv DISPLAY to something? > I've > tried setting DISPLAY to aqua, Aquaterm, and aquaterm, but those all > give me > errors. After figure is called, a show terminal gives me "terminal > type is > x11 1" even if it was set to aqua before. Joe, Henry and others the modified figure.m for OS X _should_ work if you set the default gnuplot term to aqua. You can do that by setting the environment variable GNUTERM to aqua "setenv GNUTERM aqua" or "export GNUTERM=aqua" depending on shell. That was the only way I could think of to implement the feature and still give the user a choice of aquaterm or x11. Not documenting it was very stupid indeed. Until someone comes up with a better solution, the following doc text would probably help: - Function File: figure (N) Set the current plot window to plot window N. This function currently requires aquaterm or X11 and a version of gnuplot that supports multiple frames. To use aquaterm, set environment variable GNUTERM to aqua, making it the default gnuplot terminal. /Per ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------