I've refactored hatching support to move the hatch design itself to the core, added support for them in the Agg and SVG backends, and simplified their usage in the PDF and PS backends. It should now be easier to add new hatch styles if anyone ever feels artistic. In order to use the same general approach in all backends, the PS backend now uses the makepattern command rather than a loop to draw each hatch line. That may be a regression in certain situations (eg., old PS printers without enough memory). So those who were using the old PS backend with hatches should test the new approach and report any problems. Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Mon, Dec 29, 2008 at 8:20 AM, Michael Droettboom <md...@st...> wrote: > I've refactored hatching support to move the hatch design itself to the > core, added support for them in the Agg and SVG backends, and simplified > their usage in the PDF and PS backends. It should now be easier to add > new hatch styles if anyone ever feels artistic. Hey Michael, this is really great. Did you get all this done this morning or was this a holiday project :-) The only problem I see is that it looks like you forgot to fix the title in the hatch_demo.py! The last major piece for patches is now gradient fills. JDH
I've written a patch for the Mac OS X native backend to make use of the new hatching support; see patch #2497785 at https://sourceforge.net/tracker/index.php?func=detail&aid=2497785&group_id=80706&atid=560722 I tested this with the new hatch_demo.py in SVN trunk, and it seems to work fine. --Michiel --- On Mon, 12/29/08, Michael Droettboom <md...@st...> wrote: > From: Michael Droettboom <md...@st...> > Subject: [matplotlib-devel] Hatching support > To: "matplotlib development list" <mat...@li...> > Date: Monday, December 29, 2008, 9:20 AM > I've refactored hatching support to move the hatch > design itself to the > core, added support for them in the Agg and SVG backends, > and simplified > their usage in the PDF and PS backends. It should now be > easier to add > new hatch styles if anyone ever feels artistic. > > In order to use the same general approach in all backends, > the PS > backend now uses the makepattern command rather than a loop > to draw each > hatch line. That may be a regression in certain situations > (eg., old PS > printers without enough memory). So those who were using > the old PS > backend with hatches should test the new approach and > report any problems. > > Mike > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
On Sat, Jan 10, 2009 at 9:28 AM, Michiel de Hoon <mjl...@ya...> wrote: > I've written a patch for the Mac OS X native backend to make use of the new hatching support; see patch #2497785 at > > https://sourceforge.net/tracker/index.php?func=detail&aid=2497785&group_id=80706&atid=560722 > > I tested this with the new hatch_demo.py in SVN trunk, and it seems to work fine. Thanks Michiel, I committed this patch to the trunk and closed the item on the sf tracker. JDH