|
From: <pl...@pi...> - 2008-12-14 11:56:56
|
Bill Broadley wrote: > I've been generating some plots that get a bit busy, sometimes it's nice to be > able to toggle what you see. So I wrote a script to tweak the gnuplot output, > and it generates: > http://cse.ucdavis.edu/bill/barc.svg > > Try clicking on any of key titles like "1-thread add". Currently it's a short > perl script. The changes are just things like adding a > onclick=ToggleVisibilty call for each key text entry, adding a id= group for > each line in the graph, and of course the small routine to actually toggle the > visibility. > > Any comments on how hard it would be to add to the gnuplot SVG output routine? > > How useful? > > Would a reasonably written patch to do this be accepted? > > It interactive toggle is responsible to around 1400 bytes of that 55kb file. > > In any case I find it rather useful, especially when comparing two different > datasets. > Hi Bill, from a user's point of view I love it. I have several cases where this would be useful including my current main use for gnuplot on an embedded system. In view of the relatively light overhead it seems like a very good feature. I would imagine that the biggest problem would be defining the syntax for the commands to integrate this idea rather than the implementation itself. I'll let the core devs reply on that issue. Are you willing to send me your perl script? I may well implement the same idea in awk rather than waiting for an eventual integration of this feature in gnuplot (the embedded does not have perl) Best regards, Peter. |