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.
>
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:
>
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
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
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