[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hiding plots
From: |
John W. Eaton |
Subject: |
Re: hiding plots |
Date: |
Fri, 14 Sep 2007 10:40:19 -0400 |
On 14-Sep-2007, Thomas Weber wrote:
| Am Freitag, den 14.09.2007, 14:01 +0200 schrieb Ólafur Jens Sigurðsson:
| > During the run of a shell script that calls this octave file for lots
| > of fits I get bombarded by my plots :-)
| > This is not good since it distracts me from doing something else while
| > my machine does my work for me, is there any way to use plot and print
| > to create plots and just save them in a file instead of making a
| > window appear for each plot?
|
| octave2.1:2> x = [1:10]
| x =
|
| 1 2 3 4 5 6 7 8 9 10
|
| octave2.1:4> __gnuplot_set__ terminal postscript
| octave2.1:5> __gnuplot_set__ output "yourfile.eps"
| octave2.1:6> plot(x)
| octave2.1:7> ls *.eps
| yourfile.eps
| octave2.1:8> exit
The __gnuplot_set__ commands have no effect on the higher-level plot
functions in 2.9.x (x > 9). For that, you would use something like
figure (1, "visible", "off");
... plot commands ...
print ("-deps", "yourfile.eps");
jwe