On Monday, 20 April 2020 02:05:19 PDT Georg-Johann Lay wrote:
> 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.
plot [0:1] atan(x)
pause mouse close
plot [0:1] cos(x)
pause mouse close
The "persist" option is not what you want here, although it doesn't hurt.
Ethan
> 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
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|