tags:

views:

181

answers:

2

Hey there,

I want to call gnuplot with a shell command, all the commands are stored in, let's say, "load.gp".

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

The Problem is, I can't figure out how to reach that without being in the gnuplot shell.

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

or

gnuplot -persist 'load.gp'

won't work. Can somebody help me?

Thanks, Jan

A: 

The command

gnuplot -persist load.gp

should do the trick just fine...

Sounds like you have some error in your load.gp file. Try setting the terminal in your load.gp file. Perhaps it the terminal remains unset or is set to a terminal incompatible with the commands in y our file. all fail, post your load.gp file here, and let's have a look at it :)

/B2S

Born2Smile
A: 

You need to add an hyphen after the command, e.g.

gnuplot -persist 'load.gp' -

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

leifdenby