File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ def set_powerlimits(self, lims):
623623
624624 def format_data_short (self , value ):
625625 # docstring inherited
626- if isinstance ( value , np .ma .MaskedArray ) and value . mask :
626+ if value is np .ma .masked :
627627 return ""
628628 if isinstance (value , Integral ):
629629 fmt = "%d"
Original file line number Diff line number Diff line change @@ -1854,7 +1854,7 @@ def transform_affine(self, points):
18541854 # The major speed trap here is just converting to the
18551855 # points to an array in the first place. If we can use
18561856 # more arrays upstream, that should help here.
1857- if not isinstance (points , ( np .ma . MaskedArray , np . ndarray ) ):
1857+ if not isinstance (points , np .ndarray ):
18581858 _api .warn_external (
18591859 f'A non-numpy array of type { type (points )} was passed in '
18601860 f'for transformation, which results in poor performance.' )
You can’t perform that action at this time.
0 commit comments