File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
666666class 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
733733def _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
You can’t perform that action at this time.
0 commit comments