【发布时间】:2021-03-19 03:20:33
【问题描述】:
我一直在处理这个文件的一些种类:
$DATA << EOD
0.910731391716549 0.0917930320554009 LABEL1 '#008000'
0.871162274545609 0.181191762678911 LABEL2 '#ffff00'
EOD
set key off
set border 3; set tics nomirror
set xrange [0:*]
plot "$DATA" using 1:2:3:4 with labels textcolor rgb variable
这是基于gnuplot scatter plot, labels with color
这应该是一个散点图,带有标签LABEL1 和LABEL2,但是当我运行 GNUPlot gnuplot 5.2 patchlevel 8 时,我得到了这个错误:
"/tmp/oBjdIStjpA" line 13: warning: Skipping data file with no valid points
plot "$DATA" using 1:2:3:4 with labels textcolor rgb variable
^
"/tmp/oBjdIStjpA" line 13: x range is invalid
这个错误没有意义。
如果我将 plot 行更改为 plot "$DATA" using 1:2:3:4 with labels GNUPlot 可以工作,但没有我想要的颜色。
我没有使用与其他海报相同的颜色编码,而且我不知道如何转换为其他海报使用的任何十进制编码。
如何获得每个点的颜色?
【问题讨论】:
标签: gnuplot