|
From: Michael S. <Mic...@bo...> - 2026-04-01 16:26:54
|
Theozh, Thanks for the script. I learned about some nice gnuplot features by reading it and testing it. Is there a way to associate hypertext with objects? I would like to add hypertext labels for the moon phases it https://boardsailor.com/palo_alto/third_avenue_28_day_forecast.svg Thanks, Michael On Wed, Apr 1, 2026 at 1:48 AM theozh via gnuplot-info < gnu...@li...> wrote: > in case this is still of interest... > If the values in the 4th column are numbers, you could pick the RGB-value > from a string. > Check for example `help linecolor variable` and `help word` > > Hope this helps, Theo. > > ### point color depending on column value > reset session > > $Data <<EOD > 1 4 foo 1 > 2 3 bar 3 > 5 8 baz 2 > EOD > > set key noautotitle > myLabel(col) = sprintf("%s", strcol(col)) > myColor(col) = int(word("0xff0000 0x00ff00 0x0000ff", int(column(col)))) > > plot $Data u 1:2:(myLabel(3)):(myColor(4)) w labels hypertext point pt 7 > lc rgb var > ### end of script > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |