|
From: <pl...@pi...> - 2008-12-25 12:15:34
|
Hi, Bill never got a reply to his question of whether a patch to add ToggleVisibility to gnuplot would be likely to get accepted. I would like to reiterate that question. The changes to svg output would be fairly trivial. 1/ separte line sample form the <path> of the plot itself 2/ add some id="..." identifiers to output. This would actually be a good idea anyway to enable future expansion of functionality (and readability of the svg markup: try locating the grid output by scanning the current output). eg <path id="line1" d=' ....'></path> <path id="line1_sample" d=' ....'></path> 3/ add an onclick event to the legend texts <text onclick='toggleVisibility(evt,"line1")'>line1 legend</text> 4/ add a short <script > [CDATA[ .....</script> to the top of the svg file. 5/ someone will have to come up with a spec for adding this to the command syntax. I really like this feature and it would be a good first step in adding interactivity to gnuplot's svg output. What are the chances of it getting accepted? TIA, Peter. |