请问您能帮我吗?我想把一行的类型改为虚线。我使用以下命令:
gnuplot> set terminal png size 750,210 nocrop butt font "/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf" 8
gnuplot> set output "/root/data.png"
gnuplot> set xdata time
gnuplot> set timefmt "%Y-%m-%d"
gnuplot> set format x "%b %d"
gnuplot> set ylabel "item1"
gnuplot> set y2label "item2"
gnuplot> set y2tics
gnuplot> set datafile separator "|"
gnuplot> plot "/root/results.txt" using 1:2 title "item1" w lines lt 4, "/root/results.txt" using 1:3 title "item2" with lines
但我总是只得到品红色的线。
我使用的是4.6补丁级别0版本。
谢谢回复。
plot x lt 4, x**2 lt 3
有什么问题?但是plot x lt 4, x**2
也应该可以工作,但在第二种情况下,会自动选择linetype 2
。 - Christophset style line
您可以指定一条线的样式,并且可以通过例如linestyle 1
来选择。当没有指定任何内容时,默认使用线类型。 - Christoph