[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving Octave Plots
From: |
Paul Laub |
Subject: |
Re: Saving Octave Plots |
Date: |
Tue, 15 Mar 2005 12:11:01 -0800 |
Carlos,
Octave uses gnuplot to plot, and gnuplot 4.0 allows one to save plots
to disk in postscript, png, and a variety of other formats. The
relevant gnuplot command is "set terminal". (Type "help set terminal"
in the gnuplot console for more information.)
>From octave, you might write a script that dispatches the set terminal
command to gnuplot along with filename and other required information.
You could use Octave's graw() command to do that. For example,
graw(sprintf("set terminal postscript %s\n;", psoptions));
graw(sprintf("set output \"%s\";\n", filename));
Paul Laub
On Tue, 15 Mar 2005 12:41:48 -0600, Carlos Sevcik <address@hidden> wrote:
> Is it possible to save octave plots other than capturing them on the screen?
>
> Thanks
>
> --
> Carlos Sevcik, MD PhD
> Professor
> Head, Laboratory on Cellular Neuropharmacology
>
> e-mail: address@hidden
> WWW: http://www.ivic.ve/cbb/labspa.www/nfclab.html
> USA Address:
> P.O.Box 025304. PM 5101
> Miami FL 33102-5304
> USA
>
> Phone: +58 212 5041399
> +58 412 9319162 (Cellular)
> FAX: +58 212 5041093
>
>
>
-------------------------------------------------------------
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
-------------------------------------------------------------