Gnuplot行和键颜色

Gnuplot行和键颜色,gnuplot,Gnuplot,我正在尝试使用Gnuplot创建一个折线图。每一行用不同的颜色表示。我想要的是键的颜色与线的颜色相同。这就是我现在拥有的。是否可以将文本“第2行”设置为橙色,“第3行”设置为红色,等等 这是我在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

我正在尝试使用Gnuplot创建一个折线图。每一行用不同的颜色表示。我想要的是键的颜色与线的颜色相同。这就是我现在拥有的。是否可以将文本“第2行”设置为橙色,“第3行”设置为红色,等等

这是我在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',\

非常感谢。

不幸的是,没有。绘图标题(现在是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"
当然,这需要对标签的位置进行一些调整

您可以在上提交功能请求