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:
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, theset term
status, allset
options, or all of these, plus the lastplot
(splot
) command to the specified file.Syntax: save {option} 'filename'