输出eps或svg的Gnuplot脚本-如何编写?
我有以下gnuplot脚本:输出eps或svg的Gnuplot脚本-如何编写?,svg,gnuplot,eps,Svg,Gnuplot,Eps,我有以下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 ti
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
我希望此脚本在运行时输出SVG或EPS-我需要添加或修改什么才能实现这一点?在
gnuplot
中,输出类型称为terminal
在脚本中,在plot
命令之前,请使用
set term svg
set output "output.svg"
或
两个终端都有几个选项。键入help-eps
(在某些gnuplot上这是help-epscairo
)或help-svg
要获取构建可用终端的列表,请键入set terminal
set term eps
set output "output.eps"