検索してみましたが、この特殊な条件に対する解決策は見つかりませんでした。私のプロットでは、2つのトレースを比較しています。折れ線グラフを使用しており、両方のトレースは異なる色でプロットされています。
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つのタイトルを表示し、繰り返しのタイトルを削除したいのです。このようなことは可能でしょうか?
これを実現するには、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` に 0 文字の文字列を設定することもできます。
plot 'File.dat' using 1:2 title ""
もし、あなたがちょっとしたトリックに抵抗がなければ。
最後の "Without CloneScale" のタイトルを省略するだけで、凡例からタイトルと行の両方が削除されます。 最後のタイトルをスペースに設定すると、凡例にその行とその前の(一見)何も表示されなくなります。
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 ' ' with lines lc rgb "black"