[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printeps error question
From: |
Gerald Ebberink |
Subject: |
Re: printeps error question |
Date: |
Wed, 08 Dec 2004 16:36:52 +0100 |
I personally would advice to use
printeps("sin")
since sin is also a command
On Wed, 2004-12-08 at 07:26 -0800, John B. Thoo wrote:
> 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));
> replot
> #gset terminal x11
> closeplot
> endfunction
>
>
> 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
> octave:3>
>
> What am I doing wrong?
>
> TIA.
> ---John.
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
--
Ing. Gerald Ebberink
Research Technician
Kernfysisch Versneller Instituut
Rijksuniversiteit Groningen
Zernikelaan 25
9747 AA Groningen
The Netherlands
tel: +31 50 363 3518
lab: +31 50 363 3588
mob: +31 62 460 9930
fax: +31 50 363 4003
-------------------------------------------------------------
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
-------------------------------------------------------------