Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use of a label as an HTML link

8 views
Skip to first unread message

Alex van der Spek

unread,
May 8, 2012, 7:28:45 AM5/8/12
to
Has anyone experience with using a label in gnuplot as an HTML link?

For instance

gnuplot>>> set label 0 "This is where a link refers to." at 0.5,0.5
gnuplot>>> set label 1 "<p><a name=LinkHere></a></p>" at 0.5,0.5 texcolor
'backgroundcolor'

Obviously this makes sense if the output terminal is SVG or HTML and that
output graph is embedded in a master HTML document that links to these
labels. Label 0 is displayed, label 1 is set at the same position but
becomes invisible as the textcolor is equal to the backgroundcolor.

Any experience most welcome. Haven't tried this myself yet.

Alex van der Spek

sfeam

unread,
May 8, 2012, 11:33:45 AM5/8/12
to
Alex van der Spek wrote:

> Has anyone experience with using a label in gnuplot as an HTML link?
>
> For instance
>
> gnuplot>>> set label 0 "This is where a link refers to." at 0.5,0.5
> gnuplot>>> set label 1 "<p><a name=LinkHere></a></p>" at 0.5,0.5
> texcolor 'backgroundcolor'
>
> Obviously this makes sense if the output terminal is SVG or HTML and
> that output graph is embedded in a master HTML document that links to
> these labels. Label 0 is displayed, label 1 is set at the same
> position but becomes invisible as the textcolor is equal to the
> backgroundcolor.

For SVG, the graph and the individual plots within the graph already
have anchoring identifiers.
<g id="running_avg_1_plot_1" ><title>running_avg_1_plot_1</title>
These are used, for example, to toggle the individual plots on/off
interactively by mousing.

For a related application that has not yet been added to CVS,
have a look at the demo for Patch 3510881

http://gnuplot.sourceforge.net/demo_hypertext/
0 new messages