help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AquaTerm


From: Per Persson
Subject: Re: AquaTerm
Date: Tue, 26 Feb 2002 16:09:49 +0100

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
address@hidden

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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]