On 2006-11-12 13:11-0500 [EMAIL PROTECTED] wrote: > > Hello, > > I've added a SVG driver to PLplot [...].
I am glad you have made this promising start for -dev svg since SVG is an important web standard. This device builds fine on my Linux box (as a dynamic device). This is a very pleasant change from the old days when usually the person who made the new device needed help with the ABS configuration. CMake comes through again for us! > If you choose to play with it, you should be aware of the following > issues: > (1) If the plot is at all > complicated then you might find rendering to be painfully slow. [...] I confirm that on my 2.4GHz Linux box. It takes about 1 second to render example 1 (which is not too bad) and about 20 seconds (moderately bad) to render the first page of example 8 using the "display" application that is part of the suite of applications that come with the ImageMagick software package. OTOH, the antialiased plotting lines look outstanding. I recall that our other device driver with antialiased plotting lines on Linux, wxwidgets, used to be slow. However, some changes Werner did greatly speeded it up (try c/x08c -dev wxwidgets -drvopt smooth=1,text=1 to see these nice-looking results which are rendered in about a second per page on my box). Also, you might want to look at your area-fill functionality (which is used a lot for example 8). Area fills are not particularly well suited for vector operations so some optimization care may be needed for your area fills for this vector device. > (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. We ran into this same issue for the gd family of devices, and it isn't completely straightened out yet. As I recall this was due to a difference between character origins between PLplot and various fonts. The PLplot character origin used for rendering is assumed to be right in the middle of the character while fonts use a variety of different origins. You need to transform between the two origins, and that transformation obviously depends on the size of the character, and the font origin. Other issues I noticed were the horizontal placement of exponents in example 1 and something screwball with the 3D transformation of the axis labels in example 8. Also, I could not get the -fam option to work so all I saw from example 8 was the first page. (The PLplot familying option generates a separate file for each page. Familying is well implemented for the gd-related devices if you want a template of how to do it. See also, http://plplot.sourceforge.net/docbook-manual/plplot-html-5.6.1/output-devices.html#familying OTOH, if the SVG standard allows multiple pages per file, then you should implement that standard and avoid familying.) Finally, I used the http://jiggles.w3.org/svgvalidator/ValidatorUpload.html SVG validator, and it reported a minor validation issue with the constant version number you have specified. This issue disappears if you remove the version="1.1" line from the <svg> element > 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. Hearing that makes me happy... :-) Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- 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