On 2009-05-01 18:13-0400 Hezekiah M. Carty wrote: > On Fri, May 1, 2009 at 3:47 PM, Hezekiah M. Carty <[email protected]> > wrote: >> One fix for the Cairo driver's sawtooth effect suggested on the Cairo >> list is to change the line caps and/or joints. The attached patch >> does just that and produces, from what I can tell, output which is >> quite nice and without any of those teeth along the edges of the >> plotted surfaces in example 8. > > In the spirit of cleaning up line rendering on the Cairo driver, I > have attached another patch which I think makes Cairo lines render a > little more cleanly. The patch adds a few convenience functions to > the Cairo driver for getting/setting line drawing styles and sets the > style of line ends and joints when rendering both individual line > segments and polylines. > > The contours on page 4 of example 16 provide a good example of the > effect this patch has. As-is, the contours have small dents or gaps > between each line segment. With the attached patch these gaps are no > longer there. One downside is that the contour line ends protrude > more noticeably past the plot boundaries, similar to the Qt output. > > This patch would apply on top of the previous Cairo sawtooth patch. > > Comments? This is a slightly more invasive patch, so it is probably > better as a post-5.9.3 addition, regardless of the status of the > sawtooth fix patch.
Some trivial whitespace and comment spelling changes were required to get the patch to apply cleanly. Once that was done, I agree the 4th page of example 16 looks much better at high resolution for pscairo. Since Hazen has already approved of the general form of the patch (i.e., the convenience functions which I like as well), I have made the commit (revision 9898). 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 libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
