6

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?

1 Answer 1

9

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'

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.