Revision: 6822
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6822&view=rev
Author:   jdh2358
Date:     2009-01-24 18:06:02 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
drop patches containing nan verts

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/patches.py

Modified: branches/v0_98_5_maint/lib/matplotlib/patches.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/patches.py    2009-01-23 16:26:48 UTC 
(rev 6821)
+++ branches/v0_98_5_maint/lib/matplotlib/patches.py    2009-01-24 18:06:02 UTC 
(rev 6822)
@@ -298,7 +298,8 @@
         tpath = transform.transform_path_non_affine(path)
         affine = transform.get_affine()
 
-        renderer.draw_path(gc, tpath, affine, rgbFace)
+        if not np.isnan(tpath.vertices).any():
+            renderer.draw_path(gc, tpath, affine, rgbFace)
 
         #renderer.close_group('patch')
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to