如何呈现绘图然后返回到 cmd 提示符
我有一个数据文件和一个 gnu 文件,其中包含我的绘图命令。
我怎样才能在gnuplot中生成一个绘图,以一种我称之为gnuplot的方式,给它一个gnu文件的名称...它给我一个带有绘图的窗口...并且在我关闭它之后,它不会返回到gnuplot命令提示符,而是cmd(windows cmd.exe)命令提示符?
I have a data file, and a gnu file, in which my plotting commands are.
How can I produce a plot in gnuplot, in a way that I call gnuplot giving it a name of the gnu file ... it gives me the window with a plot ... and after I close it, it returns me not to gnuplot command prompt, but to cmd (windows cmd.exe) command prompt ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从脚本启动 gnuplot(使用 gnuplot script.gnuplot)时,有 3 个解决方案(用于生成持久绘图)。
pause -1
,这样用户需要在 gnuplot 销毁绘图窗口之前按 Enter 键gnuplot script.gnuplot -
在脚本完成后进入 gnuplot 交互模式-persist
命令行选项创建持久绘图窗口There's 3 solutions for this problem (for producing persistent plots) when starting gnuplot from a script (using
gnuplot script.gnuplot
).pause -1
at the end of your gnuplot script (after the plot), such that a user needs to press enter before gnuplot destroys the window with the plotgnuplot script.gnuplot -
to go into gnuplot's interactive mode after the script has completed-persist
command line option to create a persistent plot window