Compound paths

Are there any more examples of matplotlib's new path functionality, in addition to the one in examples/api/path_patch_demo.py? Specifically, I would like an example of using compound paths to draw a donut-shape that shows the inner and outer edge and fills the donut with a color.

Thank you,
Paul

Paul Novak wrote:

Are there any more examples of matplotlib's new path functionality, in addition to the one in examples/api/path_patch_demo.py?

http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg07706.html

I'm always glad to see that old chestnut resurface, but it doesn't really address the need for a hole in the middle. (I'm sure the dolphins are very happy about that...)

matplotlib paths use the "non-zero" filling rule, so the directionality of the path affects filling. The best concise description I know of is here:

http://www.w3.org/TR/SVG/painting.html#FillProperties

So the direction of the inside and outside paths must be different in order to create donut-like shapes.

I've added donut_demo.py to the examples (add attached it here).

Hope that helps.

Cheers,
Mike

Alan G Isaac wrote:

donut_demo.py (1.5 KB)

ยทยทยท

Paul Novak wrote:
  

Are there any more examples of matplotlib's new path functionality, in addition to the one in examples/api/path_patch_demo.py?
    
Re: [Matplotlib-users] ploting a contour graph from data files

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA