Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6309af9 commit 6f77123Copy full SHA for 6f77123
1 file changed
lib/matplotlib/patches.py
@@ -298,7 +298,8 @@ def draw(self, renderer):
298
tpath = transform.transform_path_non_affine(path)
299
affine = transform.get_affine()
300
301
- renderer.draw_path(gc, tpath, affine, rgbFace)
+ if not np.isnan(tpath.vertices).any():
302
+ renderer.draw_path(gc, tpath, affine, rgbFace)
303
304
#renderer.close_group('patch')
305
0 commit comments