使GNUPLOT从外壳保存图

烈焰

使用某个程序(PersistenceLandscapes工具箱),我正在生成大量脚本,并使用gnuplot从中生成图形。我遍历文件并使用命令gnuplot显示图gnuplot gnuplotCommand.txt -p如何使gnuplot将图保存为PNG或(最好是EPS)格式?(我想避免干预gnuplotCommand-type脚本。)

克里斯多夫

最简单的解决方案是通过该-e选项添加终端设置,并将标准输出通过管道传递到所需的输出文件:

gnuplot -e 'set term pngcairo' gnuplotCommand.txt > output.png

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章