Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to dump commands for current plot

Tags:

gnuplot

In interactive mode gnuplot remembers all the settings for the current plot. It knows what to do when I type 'replot'. So, is there a way to dump all of the current settings into a script file?

like image 561
Maciej Trybiło Avatar asked Jun 26 '12 16:06

Maciej Trybiło


1 Answers

See the save command.

You use it as follows:

save "My_stuff_goes_to_this_file.txt"

Here's a (small) excerpt from the docs:

The save command saves user-defined functions, variables, the set term status, all set options, or all of these, plus the last plot (splot) command to the specified file.

Syntax: save {option} 'filename'

like image 146
mgilson Avatar answered Oct 03 '22 18:10

mgilson