Gnuplot immediately closes plot window?

Georg-Johann Lay <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Hi, I am new in Gnuplot and am still struggling with it...

Usually I am running it as a script from the command line like

 > gnuplot -persist x.gplot

However, the persist option is not working properly, for example with 
the following x.gplot:

plot [0:1] atan(x)
plot [0:1] cos(x)
quit

What I want:

Show plot #1 until I close that window, then
Show plot #2 until I close that window, then
Quit after the last window is closed.

However, what happens is:

1) The 1st plot is shown but immediately closed after a fraction of a 
second.

2) The 2nd plot is shown persistently as desired.

3) After closing that window, Gnuplot does NOT quit, i.e. ignores the 
final "quit" command.

I am sure this question must have been asked 100 times before, but 
neither the manual nor the FAQ are addressing this.

Gnuplot version is v4.4.4

Thanks,

Johann



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.