2016-12-13 50 views
0

此源:gnuplot的不打印标题和不打印数据点

clear 
reset 
unset key 

set terminal pngcairo 

set output "speed.png" 

set title "Speed w.r.t. execution time and file size" 
set xlabel "file size [Byte]" 
set ylabel "Time [s]" 

set linetype 1 pi -1 pt 6 lc black dt solid 
set linetype 2 pi -1 pt 4 lc black dt (8,6) 

plot \ 
"speed_pc.dat" t "PC" with line, \ 
"speed_droid.dat" t "device" with line 

生成此图片:

enter image description here

但Im't坚持,因为我不明白为什么它没有在第二行中打印出行的标题和+的数据对应关系,就像这张图片(摘自“Gnuplot in action 2nd”):

enter image description here

更清晰: 我想要我的第二行像'稀疏2'。

谢谢!

回答

1

为了得到线( “钥匙”)的标题:删除unset key

要绘制的 “+” 号:plot ... with linespoints,而不是plot ... with lines

您可以通过删除完整的plot ...命令并将其替换为test来获得可用线条和点样式的概述。这将绘制一个测试面板,并且您可以结合线条颜色,点形式......

我认为您的set linetype中的dt是Gnuplot 5.0中的新增功能,我只有4.6,并且无法测试此功能。