From help-octave-request at bevo dot che dot wisc dot edu Tue Feb 26 14:44:31 2002 Subject: Re: AquaTerm From: Pierre Vaudrey To: Per Persson Cc: Paul Kienzle , help-octave@bevo.che.wisc.edu Date: Tue, 26 Feb 2002 21:40:30 +0100 Per, I tested your new figure.m file without success : error: `strncmp' undefined near line 15 column 8 error: evaluating index expression near line 15, column 8 error: if: error evaluating conditional expression error: evaluating if command near line 15, column 5 error: evaluating if command near line 14, column 1 error: called from `figure' in file `/Users/pierreva/Library/Octave/m/plot/figure.m' Le mardi 26 février 2002, à 04:09 PM, Per Persson a écrit : > D'oh! > My fault... I modified figure.m and image.m to use OS X quartz display > instead of XWindows and put them on my webpage until a had the time to > submit a full set of changes to make octave/OS X work nice together. > > Pierre, use the code below instead (remember to set environment > variable GNUTERM to aqua) > > Paul, jwe and others: would this be a reasonable change to figure.m? > > /Per > > -- file: figure.m ---------------------------------- > > function f = figure (n) > > static figure_list = create_set (0); > static figure_called = 0; > > if (nargin == 0) > f = max (figure_list) + 1; > else > f = n; > endif > > if (nargin < 2) > if(strncmp(getenv("GNUTERM"), "aqua", 4)) > oneplot (); > figure_list = union (figure_list, f); > eval (sprintf ("gset term aqua %d\n", f)); > else > if (gnuplot_has_frames) > if (! isempty (getenv ("DISPLAY"))) > oneplot (); > figure_list = union (figure_list, f); > eval (sprintf ("gset term x11 %d\n", f)); > else > error ("figure: requires X11 and valid DISPLAY"); > endif > else > error ("figure: gnuplot doesn't appear to support this > feature"); > endif > endif > else > if (rem (nargin, 2) == 0) > if (! figure_called) > figure_called = 1; > warning ("figure: setting figure properties is > unsupported"); > endif > else > usage ("figure (n)"); > endif > endif > endfunction > --------------------------- > > On tisdag, februari 26, 2002, at 03:00 , Paul Kienzle wrote: > >> isequal is part of octave-forge (http://octave.sf.net). I don't know >> why >> it is being used in your figure.m. >> >> Paul Kienzle >> pkienzle at users dot sf dot net >> >> On Tue, Feb 26, 2002 at 10:22:02AM +0100, Pierre Vaudrey wrote: > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > > Pierre Vaudrey email pierre dot vaudrey at wanadoo dot fr ------------------------------------------------------------- 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 -------------------------------------------------------------