Hello, I've added a SVG driver to PLplot (http://www.w3.org/Graphics/SVG/). SVG (Scalable Vector Graphics) is a XML graphical language that is supported natively or as a plug in most modern browsers. In theory it is anti-aliased and uses truetype fonts, but the reality will depend on the capabilities of your SVG renderer. Since this driver is still a bit rough, primarily with regard to text placement, it is off by default.
If you choose to play with it, you should be aware of the following issues: (1) The S in SVG might also stand for "Simple". If the plot is at all complicated then you might find rendering to be painfully slow. I'd recommend starting with example 3 before jumping to something complicated like example 8. I'm not sure exactly why it is so slow. The generated files are similar in size to their postscript equivalents. Perhaps this is due to the fact that, at least in a browser, a DOM tree is being constructed during rendering so that you can manipulate every element with javascript? (2) As mentioned above, vertical text placement still leaves something to be desired. I think this is because SVG is scanning each text element and deciding based on the glyphs in that element what the baseline of the element should be. You can see this in example2 where the numbers are all centered slightly differently in their boxes. It would be preferable from our point of view if it always used the same baseline for a particular font. (3) On OS-X in Firefox and Camino the font-family "serif" comes out looking like the font-style "italic". I'm pretty puzzled by that one. Anyway, thanks to our CBS I was delighted to find that I only had to add one line to each of two files to build PLplot with this driver. -Hazen ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel