如何转储当前图的命令 [英] How to dump commands for current plot

查看:53
本文介绍了如何转储当前图的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在交互模式下,gnuplot会记住当前图的所有设置.当我输入"replot"时,它知道该怎么办.那么,有没有办法将所有当前设置转储到脚本文件中?

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?

推荐答案

请参见save命令.

您可以按以下方式使用它:

You use it as follows:

save "My_stuff_goes_to_this_file.txt"

这是文档的(小)摘录:

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

save命令保存用户定义的函数,变量,set term状态,所有set选项或所有这些选项以及最后的plot (splot)命令转到指定文件.

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.

语法: 保存{option}'文件名'

Syntax: save {option} 'filename'

这篇关于如何转储当前图的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆