[Top][All Lists]

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

printeps error question

From: John B. Thoo
Subject: printeps error question
Date: Wed, 8 Dec 2004 07:26:03 -0800

Hi. I have a printing script provided by AS Hodel that used to work fabulously for me, but now, after not having used it in a while, gives an error.

The script is:

function printeps(filename)
% function printeps(filename)
% replot screen plot to a file
% inputs:
%   filename: string:
% no argument checking done - this means YOU mark!

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

but this is what I get:

octave:1> t = -1:0.01:1;
octave:2> plot (t, sin (t))
octave:3> printeps (sin)
error: sin: too few arguments
error: evaluating argument list element number 1

What am I doing wrong?


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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