help-octave
[Top][All Lists]
Advanced

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

Re: printing multiple plots to a file


From: Dmitri A. Sergatskov
Subject: Re: printing multiple plots to a file
Date: Tue, 26 Jul 2005 16:02:09 -0600
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]