Re: [matplotlib-devel] Path.to_polygons problem

2011-01-18 Thread Lionel Roubeyrie
Seems to resolve the problem! Thanks 2011/1/18 Jae-Joon Lee : > Can you see if setting the "should_simplify" to False work? i.e., > > path=cs.collections[5].get_paths()[0] #210 vertices > path.should_simplify = False > path.to_polygons() > > At least, it seems to conserve the number of vertices. >

Re: [matplotlib-devel] Path.to_polygons problem

2011-01-18 Thread Jae-Joon Lee
Can you see if setting the "should_simplify" to False work? i.e., path=cs.collections[5].get_paths()[0] #210 vertices path.should_simplify = False path.to_polygons() At least, it seems to conserve the number of vertices. Regards, -JJ On Tue, Jan 18, 2011 at 5:07 PM, Lionel Roubeyrie wrote: >

Re: [matplotlib-devel] Path.to_polygons problem

2011-01-18 Thread Lionel Roubeyrie
Hi, is there a existing patch for this problem or do we have to use/modify iter_segments for the moment? thanks 2011/1/15 Lionel Roubeyrie : > The problem appends on some paths/polygons, not all. Have a look at > the joined pictures. The to_polygons method normally take care about > polygons holes

Re: [matplotlib-devel] Path.to_polygons problem

2011-01-14 Thread Michael Droettboom
It's not obvious to me that this is wrong. The path has a MOVETO command (1) in the middle, and thus should require the creation of two polygons. Can you provide some code or pictures that demonstrate the problem? Mike On 01/13/2011 05:54 PM, Lionel Roubeyrie wrote: > Hi all, > Using the las

[matplotlib-devel] Path.to_polygons problem

2011-01-13 Thread Lionel Roubeyrie
Hi all, Using the last 1.0.1 matplotlib version,sometimes exporting paths to polygons gives wrong results like here (paths come from a tricontourset) : In [94]: path Out[94]: Path([[ 172.0079229 -43.79390934] [ 171.97660793 -43.785 ] [ 171.96206864 -43.78273625] [ 171.959 -43.78114