Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
输出eps或svg的Gnuplot脚本-如何编写?_Svg_Gnuplot_Eps - Fatal编程技术网

输出eps或svg的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

我有以下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

我希望此脚本在运行时输出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"