2
votes

I'm trying to get a linespoints plot with the points being hypertext. So far, I've managed to get linespoints working but without hypertext and I've split it into two plots overlaid, one with lines one with hypertext points. While the second "works", it results in an extra key for the points. Ideally, I want linespoints key entries for each line and points combination, not a line key and a points key.

1
Could you show some code and the figure that you have managed to obtain so far? I do not know what you mean by "hypertext points". Do these contain a web link somehow? - Miguel
@Christoph Cool, I didn't know this was possible. Is it new in 5.0? - Miguel
@Miguel Yes, and it works only for some terminals (wxt, svg, canvas, qt?) - Christoph

1 Answers

2
votes

That may be possible with a bit cheating. Usually the hypertext is shown only if also points is set. Since the area which is active for the hypertext depends on the point size, you can draw all points with linespoints and then use a transparent point when plotting the labels:

set samples 11
set xrange [0:10]
plot '+' using 1:1:1 with linespoints pt 7 ps var title 'mytitle',\
     '+' using 1:1:(sprintf('(%d,%d)', $1, $1)):1 with labels hypertext point pt 7 lc rgb '#ff000000' notitle

Note for other users: The hypertext option was introduced in version 5.0.