help-octave
[Top][All Lists]
Advanced

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

plotting to Postscript doesn't work?


From: Bart Vandewoestyne
Subject: plotting to Postscript doesn't work?
Date: Mon, 05 Jan 2004 20:51:13 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3

I'm trying to get my Octave to write it's figure output to Postscript files (or any other output i can embed in a LaTeX document), but it doesn't work. This is an example of what I'm trying to do:

I start up Octave, and this gives me a nice, clean sinus-plot in an X1 window:

octave:2> t=[0:0.01:2*pi];
octave:3> plot(t, sin(t))

Now I would like to have this plot in an output file sinus.ps, therefore I follow the instructions that I came across while googling:

octave:5> set term postscript

-> Now a bunch of output scrolls up my screen, i guess it's the Postscript language...?

Next thing I do is define my output file:

octave:6> set output "sinus.ps"

-> Again a bunch of Postscript commands scrolls up my screen...

And last but not least, i try to plot:

octave:7> plot(t, sin(t))

I'm expecting a postscript file in my current working directory, but no... nothing there:

octave:9> ls *.ps
ls: *.ps: No such file or directory


What am I doing wrong here?

The Octave version I'm using is GNU Octave, version 2.1.52 (i386-pc-linux-gnu) on a Debian unstable box.


Regards,
Bart

--
Bart Vandewoestyne                    Bart.Vandewoestyne_at_pandora.be
Naamsesteenweg 328 bus 201                     GSM: +32 (0)478 397 697
B-3001 Heverlee                          http://osswin.sourceforge.net
----------------------------------------------------------------------
"Theory is the general; experiments are the soldiers." (Leonardo da Vinci)



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