我正在尝试使用以下问题: Gnuplot - coloring a plot according to x-value 根据点的x值绘制不同颜色的点。
我的代码是:
set palette defined ( 0 'purple', 5 'blue', 10 'green', 15 'yellow', 20 'orange')
set xrange [0:22]
plot 'file.txt' using 4:5 with points pt 7 ps 0.5 palette
file.txt
0.5 056.7 +24.1081947377855 0.45455 0.8176
0.6 056.7 +24.1112503241413 5.82743 1.1484
0.7 056.7 +24.1281586440951 20.5077 1.6213
0.8 056.7 +24.1033762566952 15.9248 0.6626
0.8 056.7 +24.1044520497600 10.0548 0.6686
错误:
Not enough columns for variable color
请问怎么了?谢谢