2017-09-15 3 views
1

私はGnuplotを使って折れ線グラフを作成しようとしています。各行は異なる色で表されます。私が欲しいのは、キーが線の色と同じ色を持っているということです。これは今私が持っているもの、current versionです。オレンジ色の「線2」、赤色の「線3」などのテキストを設定することはできますか?Gnuplotの行とキーの色

これは私がGPファイルに書いたものです:

set xlabel'x-axis'; \ 
set xrange[0:25];\ 
set ylabel 'y-axis';\ 
set yrange [2:9];\ 
set key left top; 
p 'test.dat' using 1:2 w linespoints lw 5 lc rgb '#aadc32' pt 17 title 'Line 1' ,\  
'test.dat' using 1:9 w linespoints lw 5 lc 'orange' lt 1 title 'Line 2',\ 
'test.dat' using 1:6 w linespoints lw 5 lc 'red' lt 8 title 'Line 3',\ 
'test.dat' using 1:7 w linespoints lw 5 lc 'violet' pt 6 title 'Line 4',\'test.dat' using 1:8 w linespoints lw 5 lc rgb '#b5367a' pt 19 title 'Line 5',\ 
'test.dat' using 1:3 w linespoints lw 5 lc 'cyan' pt 9 title'Line 6',\ 
'test.dat' using 1:4 w linespoints lw 5 lc 'blue' lt 9 title 'Line 7',\ 
'test.dat' using 1:10 w linespoints lw 5 lc rgb '#1c1044' lt 5 title 'Line 8',\ 

はありがとうございました。

答えて

1

残念ながら。プロットのタイトルは(現在、gp5.2pl0) "textcolor"指定子を認識しません。

plot x lw 3 lc rgb "blue" title "x" tc rgb "blue" # doesn't work 

あなただけの空(」「)プロットのタイトルを印刷し、そしていくつかはもちろん、ラベルの配置をいじる必要がラベルの色

set label 1 at 8,1 "bluetitle" tc rgb "blue" 

でそれをオーバープリントすることができます。

https://sourceforge.net/p/gnuplot/feature-requests/

に機能要求を入力することがあります