代码:
set bar 1.000000 front
set style circle radius graph 0.02, first 0.00000, 0.00000
set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy
unset key
set encoding utf8
set datafile separator " "
set term canvas
set style data lines
set title "Scattered Graph"
set xlabel "GM %"
set terminal canvas solid butt size 1800,1000 enhanced mousing fsize 10 lw 1 fontscale 1 name 'canvas_1' jsdir '/tmp/'
set ylabel "Conversion Rate"
set grid
set timestamp
save_encoding = "utf8"
plot '/tmp/scat.dat' using 2:3:1 with labels hypertext point pt 7 ps var lc rgb "#ffee99"
quit
scat.dat中有三列,如name x y,其中x和y是散乱图中的值,name是超链接。
但是当我尝试运行此文件时,其抛出错误如下:
plot '/tmp/scat.dat' using 2:3:1 with labels hypertext point pt 7 ps var lc rgb "#ffee99"
^
"/tmp/scat.cmd", line 16: ';' expected
我无法弄清楚丢失的东西是什么。 GNUPLOT Ver。 4.6
任何帮助将不胜感激。