2017-09-15 3 views
1

Gnuplot을 사용하여 꺾은 선형 차트를 만들려고합니다. 각 라인은 다른 색상으로 표현됩니다. 내가 원한 것은 키가 선 색상과 같은 색을 가졌다는 것입니다. 이것은 내가 지금 가지고있는 것입니다, current version. 주황색으로 표시된 'Line 2'텍스트, 빨간색으로 표시되는 'Line 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/

에 기능 요청을 입력 할 수 있습니다.