Re: [Matplotlib-users] creating a path from multiple sets of xy coordinates (inner and outer outlines)

2014-12-22 Thread Ryan Nelson
Denis, I've only made simple polygons with MPL, so I don't know the full capabilities. However, there is another package called Shapely that can construct polygons like you've defined: http://toblerity.org/shapely/manual.html#polygons It also does some set-type stuff, such as intersections, differ

Re: [Matplotlib-users] creating a path from multiple sets of xy coordinates (inner and outer outlines)

2014-12-22 Thread Denis-Alexander Engemann
Thanks Phil, just to make sure I inderstand the logic of PathPatch. Does it cut out vertices / paths that are detected to be inside an outline as the star in this example? -Denis 2014-12-22 12:09 GMT+01:00 Phil Elson : > Sorry its taken so long to get an answer, but essentially you want to > c

Re: [Matplotlib-users] creating a path from multiple sets of xy coordinates (inner and outer outlines)

2014-12-22 Thread Phil Elson
Sorry its taken so long to get an answer, but essentially you want to concatenate the outer coordinates with the inner ones (reversed) to indicate that it is a hole. There is a pretty (simple) useful example that I added a few years ago for demonstrating the use of paths for markers: http://matplot