I have been working with some variety of this file for a while:
$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
this is based on gnuplot scatter plot, labels with color
which should make a scatterplot, with labels LABEL1
and LABEL2
but when I run GNUPlot gnuplot 5.2 patchlevel 8 I get this error:
"/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
This error makes no sense.
If I change the plot
line to plot "$DATA" using 1:2:3:4 with labels
GNUPlot works, but without the colors that I want.
I'm not using the same color coding that the other poster did, and I don't know how to convert to whatever decimal coding that the other poster used.
How can I get colors for each point?