Gnuplot: x11 terminal in interactive mode when calling gnuplot from the shell

I want to call gnuplot with the shell command, all commands are stored, say, "load.gp".

If I run the gnuplot shell and type "load" load.gp "I can change the viewpoint by dragging the splot with the mouse.

The problem is that I cannot figure out how to achieve this without being in the gnuplot shell.

echo "load 'load.gp'" | gnuplot -persist

or

gnuplot -persist 'load.gp'

will not work. Can someone help me?

Thanks, Jan

+3
source share
3 answers

Team

gnuplot -persist load.gp

should do the trick just fine ...

, load.gp. load.gp. , , . , load.gp :)

/B2S

+1

,

gnuplot load.gp -

, .

+1

You need to add a hyphen after the command, for example

gnuplot -persist 'load.gp' -

As mentioned here: http://old.nabble.com/gnuplot-in-persist-mode-td28289021.html

0
source

Source: https://habr.com/ru/post/1735032/


All Articles