我试过搜索,但我找不到这种特殊情况的解决方案.在我的情节中,我正在比较两条痕迹.我使用折线图,两条迹线都用不同的颜色绘制.
plot "delay_try1.dat" using 1:2 title 'With CloneScale' with lines,"normal_2.dat" using 1:2 title "Without CloneScale" with lines lc rgb "black", "normal2.dat" using 1:2 title 'Without CloneScale' with lines lc rgb "black"
根据我使用的当前命令,我获得3个传说中的标题,2个重复的标题.我只想要出现2个标题并删除重复的标题.是否有可能做到这一点?
Mat*_*ias 38
要完成此任务,您应该使用notitle标记.
plot "delay_try1.dat" using 1:2 title 'With CloneScale' with lines, "normal_2.dat" using 1:2 title "Without CloneScale" with lines lc rgb "black", "normal2.dat" using 1:2 with lines lc rgb "black" notitle
或者更一般的例子;
plot 'File.dat' using 1:2 notitle
一个等价的替代方法notitle是将title字符串设置为零;
plot 'File.dat' using 1:2 title ""
如果无标题行多于有标题行,则默认情况下禁用标题会更方便,使用set key noautotitle:
set key noautotitle
plot "delay_try1.dat" using 1:2 title 'With CloneScale' with lines, \
     "normal_2.dat" using 1:2 title "Without CloneScale" with lines lc rgb "black", \
     "normal2.dat" using 1:2 with lines lc rgb "black"