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.
2 parents 6d694cf + ae8931a commit 72f2de3Copy full SHA for 72f2de3
1 file changed
lib/mpl_toolkits/mplot3d/art3d.py
@@ -393,10 +393,7 @@ def _get_patch_verts(patch):
393
trans = patch.get_patch_transform()
394
path = patch.get_path()
395
polygons = path.to_polygons(trans)
396
- if len(polygons):
397
- return polygons[0]
398
- else:
399
- return []
+ return polygons[0] if len(polygons) else np.array([])
400
401
402
def patch_2d_to_3d(patch, z=0, zdir='z'):
0 commit comments