The code below is a stripped down version of the way i am implementing a
clip operation, but it is slow and memory inefficient. Is there a way to
do this without looping or just faster, perhaps with a
PolygonCollection? 

I have code that finds the perimeter path of a triangulation like this,
but it turns out that my topology is not well formed enough for it to
work. Is there a hidden matplotlib method to combine or dissolve
Polygons/Patches?

Thanks,
Alex


------------------------
import matplotlib.tri as Tri
import matplotlib.patches as patches

tri = Tri.Triangulation(lonn,latn,triangles=nv)

for triangle in tri.triangles:                                          
        p = patches.Polygon(
                                                                numpy.vstack(
                                                                                
                (lonn[triangle].T,latn[triangle].T,)
                                                                                
                ).T
                                                                )
        m.imshow(zi, norm=CNorm, cmap=colormap, clip_path=p)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to