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',\
너무 감사합니다.