How to dump commands for current plot

ぐ巨炮叔叔 提交于 2019-12-19 08:30:15

问题


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, 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'



来源:https://stackoverflow.com/questions/11211788/how-to-dump-commands-for-current-plot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!