Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25cb60c

Browse files
Fix deprecation warning
1 parent b02182c commit 25cb60c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def do_3d_projection(self):
575575

576576
# FIXME
577577
if len(xyzs) > 0:
578-
minz = min(np.min(xyzs[..., 2][~mask]), 1e9)
578+
minz = min(np.min(xyzs[..., 2][np.logical_not(mask)]), 1e9)
579579
else:
580580
minz = np.nan
581581
return minz
@@ -660,7 +660,7 @@ def do_3d_projection(self):
660660
self.axes.M,
661661
self.axes._focal_length)
662662
self._path2d = mpath.Path(np.column_stack([vxs, vys]))
663-
return np.min(vzs[~mask])
663+
return np.min(vzs[np.logical_not(mask)])
664664

665665

666666
class PathPatch3D(Patch3D):
@@ -727,7 +727,7 @@ def do_3d_projection(self):
727727
self.axes._focal_length)
728728
self._path2d = mpath.Path(np.column_stack([vxs, vys]), self._code3d)
729729

730-
return np.min(vzs[~mask])
730+
return np.min(vzs[np.logical_not(mask)])
731731

732732

733733
def _get_patch_verts(patch):
@@ -880,7 +880,7 @@ def do_3d_projection(self):
880880
super().set_offsets(np.column_stack([vxs, vys]))
881881

882882
if vzs.size > 0:
883-
return np.min(vzs[~mask])
883+
return np.min(vzs[np.logical_not(mask)])
884884
else:
885885
return np.nan
886886

0 commit comments

Comments
 (0)