Hatching support

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

Hey Michael, this is really great. Did you get all this done this
morning or was this a holiday project :slight_smile: 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

···

On Mon, Dec 29, 2008 at 8:20 AM, Michael Droettboom <mdroe@...31...> 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.

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 <mdroe@...31...> wrote:

From: Michael Droettboom <mdroe@...31...>
Subject: [matplotlib-devel] Hatching support
To: "matplotlib development list" <matplotlib-devel@lists.sourceforge.net>
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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Thanks Michiel, I committed this patch to the trunk and closed the
item on the sf tracker.

JDH

···

On Sat, Jan 10, 2009 at 9:28 AM, Michiel de Hoon <mjldehoon@...42...> 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.