Re: coloring points based on column value when also using hypertext labels

Walter Harms via gnuplot-info <[email protected]> Mon, 27 Oct 2025 16:48:44 +0000
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
I am no sure that i understand you problem, but
there is a demo called "data-dependent coloring" maybe that is a starting point ?

CU

________________________________________
Von: Kevin Klein <[email protected]>
Gesendet: Donnerstag, 11. September 2025 17:41:21
An: [email protected]
Betreff: [Gnuplot-info] coloring points based on column value when also using hypertext labels

I have the following gnuplot data file:

1   4   foo     1
2   3   bar     2
5   8   baz     1

I have the following gnuplot command:

set terminal qt
label_text(str1) = sprintf("%s", stringcolumn(str1))
plot "gnuplot_data.txt" using 1:2:(label_text(3)) with labels hypertext
notitle
pause -1

How can I color code the points based on the value of the 4th column? I
know how to do this when not using hypertext labels, but cannot figure it
out when the 3rd field of the "using" statement is dedicated to specifying
the 3rd column for the label text.

Thanks

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info