Gnuplot script disappear after creation

If you want the plotting window to remain open, you must call gnuplot with the -persist flag:

gnuplot -persist myPlot

There are already nice answers here, but the -persist flag did not work for me and enabling x11 force GnuPlot to use crapy XQuarts for windowing instead of beloved Qt. What worked for me was the

pause -1

command (from here) at the end of the script. According to the documentation

pause -1 # Wait until a carriage return is hit

I hope it helps.

Tags:

Gnuplot