[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thanks:RE: printing multiple plots to a file
From: |
Bhaskar Ramamurthy |
Subject: |
Thanks:RE: printing multiple plots to a file |
Date: |
Tue, 26 Jul 2005 15:47:17 -0700 |
Thanks. It works really well.
Bram
-----Original Message-----
From: Dmitri A. Sergatskov [mailto:address@hidden
Sent: Tuesday, July 26, 2005 3:02 PM
To: Bhaskar Ramamurthy
Cc: address@hidden
Subject: Re: printing multiple plots to a file
Bhaskar Ramamurthy wrote:
> Could you explain how to set the terminal and the output file please?
These
> must by gnuplot commands. Thanks for your help
> Bram
>
The following should do what you want.
gset term postscript color
gset output "twoplots.ps"
subplot (211)
plot (1:5, 1:5, "-g;Plot one;")
subplot (212)
plot(1:5, 5:-1:1, "-b;Plot two;")
multiplot(0,0)
gset output "/dev/null"
gset term x11
If you are using a recent version of octave you will get a warning that
gset is deprecated. This is harmless for now, you may replace
gset with __gnuplot_set__ if you wish.
Also if you are on Windows then
gset output "/dev/null"
may not work and I do not know Windows equivalent
(you may try to skip this line altogether).
Also replace "gset term X11" with "gset term windows"
or whatever you are using (you still may be using X11
if you running octave on Cygwin).
Regards,
Dmitri.
--
-------------------------------------------------------------
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------