|
From: Mojca M. <moj...@gm...> - 2011-04-10 09:03:00
|
On Sun, Apr 10, 2011 at 05:06, sfeam (Ethan Merritt) <eam...@gm...> wrote: > I have dusted off various patches, comments and suggestions uploaded > to SourceForge dating back 2 years or so, and with their guidance > have managed to write a set of javascript support routines for the > SVG terminal driver. Since I am largely unfamiliar with both SVG and > javascript, this implementation should be considered fair game for > total replacement if someone more knowledgeable wants to tackle the > project. > > SVG documents from the revised driver can now > - toggle display of individual plots by clicking on the > corresponding legend or sample in the key > - toggle the grid on/off by clicking on a grid icon shown > at the bottom left of the plot > - track the mouse position > > A regenerated set of online demo pages may be viewed at > > http://gnuplot.sourceforge.net/demo_svg_4.5/ > > Not surprisingly, SVG support in various web browsers and > graphics programs is still dodgy. > > Firefox (tested using version 3.6.14) > - Firefox can display and interact with the bare SVG document > or an HTML document with SVG embedded (e.g. the online demos) > - It has various rendering bugs, the most annoying of which is > that it ignores purely vertical lines. Because of this I have > added an ugly hack to svg.trm to displace one end of every > Path element by 0.01 pixel horizontally. > > Opera (tested using version 11.01) > - Everything works > > Konqueror (tested using version 4.4.3) > - Konqueror displays isolated or embedded SVG documents correctly > but fails to connect to the javascript DOM so that you can > interact with it. > - No support for pattern fill > > Chrome > - Chrome displays isolated SVG documents correctly, but fails to > display embedded documents. No interaction. > > I'd like to hear about success/failure with Safari or IE. It seems to work fine in Safari. It takes ages to draw something like http://gnuplot.sourceforge.net/demo_svg_4.5/transparent_solids.html. No, wait. That was not SVG's fault. I have only now realized that the generated graphics are approximately 1 MB and it only took ages do download them. I have only discovered one weirdness. With linespoints clicking on the label only removes the line, not the points of the same plot, but I guess that this is not Safari-specific. Mojca |