作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用某个程序(PersistenceLandscapes 工具箱)我正在生成大量脚本,我从这些脚本中使用 gnuplot 生成绘图。我遍历文件并使用命令 gnuplot gnuplotCommand.txt -p
让 gnuplot 显示绘图。我怎样才能让 gnuplot 以 PNG 或(最好)EPS 格式保存绘图? (我想避免干扰 gnuplotCommand
类型的脚本。)
最佳答案
你可以试试像这样的 bash 脚本
gnuplot <<- EOF
set term png
set output 'gnuplotCommand.txt.png'
load 'gnuplotCommand.txt'
EOF
或者,.eps 版本
gnuplot <<- EOF
set terminal postscript eps
set output 'gnuplotCommand.txt.eps'
load 'gnuplotCommand.txt'
EOF
关于gnuplot - 让 GNUPLOT 从 shell 中保存一个图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34069579/
我是一名优秀的程序员,十分优秀!