Gnuplot脚本输出eps或svg - 如何写?

Koz*_*oss 4 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 title "JRip" with lines, \
     "cluster.dat" using 1:5 title "FURIA" with lines
Run Code Online (Sandbox Code Playgroud)

我希望这个脚本在运行时输出SVG或EPS - 为了实现这一点,我需要添加或修改什么?

bib*_*ibi 9

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.