help-octave
[Top][All Lists]
Advanced

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

octave, gnuplot, and Mac OS X


From: A S Hodel
Subject: octave, gnuplot, and Mac OS X
Date: Fri, 25 Jun 2004 23:31:30 -0500

I've observed for several months now that the printeps, etc, scripts that I wrote for linux no longer work properly
under Mac OS X.  For example,

xx = linspace(-1,1);
yy = xx .^2 ;
plot(xx,yy)
printeps("myplot.eps");

dumps postscript to the screen and will not store the postscript to a file unless I change the script use the closeplot command:

function printeps(filename)
% function printeps(filename)
% replot screen plot to a file
% inputs:
%   filename: string:
% no argument checking done

  gset terminal postscript eps color
  eval(sprintf("gset output '%s'", filename));
  replot
  #gset terminal x11
  closeplot
endfunction

Do other mac users have similar behavior? Is there a clue to what's causing the problem? I'm using fink installed octave,
2.1.56, and fink installed gnuplot:

iMacG4:~/local_mfiles hodelas$ gnuplot --version
gnuplot 3.8j patchlevel 0



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