2016-02-13 134 views
1

我有以下gnuplot的脚本:Gnuplot脚本输出eps或svg - 如何编写?

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 - 将我需要什么,添加或修改来实现这一目标?

回答

4

gnuplot输出类型被称为terminal

在脚本中,前plot命令使用

set term svg 
set output "output.svg" 

set term eps 
set output "output.eps" 

两个终端有几种选择。键入help eps(在某些gnuplot上,这是help epscairo)或help svg

要获取您的版本的可用终端列表,请键入set terminal