使用某个程序(PersistenceLandscapes工具箱),我正在生成大量脚本,并使用gnuplot从中生成图形。我遍历文件并使用命令gnuplot显示图gnuplot gnuplotCommand.txt -p
。如何使gnuplot将图保存为PNG或(最好是EPS)格式?(我想避免干预gnuplotCommand
-type脚本。)
最简单的解决方案是通过该-e
选项添加终端设置,并将标准输出通过管道传递到所需的输出文件:
gnuplot -e 'set term pngcairo' gnuplotCommand.txt > output.png
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句