我有以下gnuplot脚本:
set autoscale
unset log
unset label
set xtic auto
set ytic auto
unset title
set xlabel "Number of clusters"
set ylabel "Accuracy of classifier (%)"
plot "cluster.dat" using 1:3 title "PART" with lines, \
"cluster.dat" using 1:4 title "JRip" with lines, \
"cluster.dat" using 1:5 title "FURIA" with lines
Run Code Online (Sandbox Code Playgroud)
我希望这个脚本在运行时输出SVG或EPS - 为了实现这一点,我需要添加或修改什么?
在gnuplot输出类型中调用terminal.
在您的脚本中,在plot命令使用之前
set term svg
set output "output.svg"
Run Code Online (Sandbox Code Playgroud)
要么
set term eps
set output "output.eps"
Run Code Online (Sandbox Code Playgroud)
两个终端都有几种选择.键入help eps(在某些gnuplot上help epscairo)或help svg.
要获取构建的可用终端列表,请键入set terminal.
| 归档时间: |
|
| 查看次数: |
5321 次 |
| 最近记录: |