I have a python code that has the following line:
os.system("gnuplot data3.gnu")
my data3.gnu has the following commands
plot "data3.txt"
pause -1
set terminal png
set output 'plot10.png'
so what i want it to do is show me the plot which it does then when i exit it saves the plot to a file called "plot10.png" it is ploting data3.txt fine however it is not saving the file.
Thanks for the help