I have a datafile "data.dat", say.
When I enter the gnuplot shell by typing 'gnuplot', and then run the command
plot 'data.dat' u 1:2 w l
the plot appearing remains responsive, i.e, by right click of mouse I can zoom it or by arrow keys, I can move the plot up/down/side.
But when I try to do the same thing using a script file, I can no more use those right click zooming and all. My script file is named as p.plt, say and contains the following line -
plot 'data.dat' u 1:2 w l
Now, when I execute it with the command gnuplot -p p.plt
, it no longer responds to those right clicks or arrow keys. What should I do to make it work with script files?
I am using linux mint 19.3 cinnamon
and gnuplot version gnuplot 5.2 patchlevel 2
.