[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotting to Postscript doesn't work?
From: |
Ada Cheng |
Subject: |
Re: plotting to Postscript doesn't work? |
Date: |
Mon, 5 Jan 2004 15:01:32 -0500 (EST) |
The following should do the trick.
gset terminal postscript
gset output "file.ps"
replot
Ada
On Mon, 5 Jan 2004, Bart Vandewoestyne wrote:
> 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
> -------------------------------------------------------------
>
>
============================================================================
Ada Cheng address@hidden
Assistant Professor http://www.kettering.edu/~acheng
Department of Science and Mathematics
Kettering University
1700 West Third Avenue
Flint, Michigan 48504-4898
U.S.A.
============================================================================
-------------------------------------------------------------
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
-------------------------------------------------------------
- plotting to Postscript doesn't work?, Bart Vandewoestyne, 2004/01/05
- Re: plotting to Postscript doesn't work?,
Ada Cheng <=
- Message not available
- Message not available
- Message not available
- Re: plotting to Postscript doesn't work?, Bart Vandewoestyne, 2004/01/05
- Re: plotting to Postscript doesn't work?, Geraint Paul Bevan, 2004/01/05
- Re: plotting to Postscript doesn't work?, John W. Eaton, 2004/01/05
- Re: plotting to Postscript doesn't work?, Bart Vandewoestyne, 2004/01/05
- Re: plotting to Postscript doesn't work?, Geraint Paul Bevan, 2004/01/05
- Re: plotting to Postscript doesn't work?, Bart Vandewoestyne, 2004/01/05
- Re: plotting to Postscript doesn't work?, Dirk Eddelbuettel, 2004/01/05