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):
623
623
624
624
def format_data_short (self , value ):
625
625
# docstring inherited
626
- if isinstance ( value , np .ma .MaskedArray ) and value . mask :
626
+ if value is np .ma .masked :
627
627
return ""
628
628
if isinstance (value , Integral ):
629
629
fmt = "%d"
Original file line number Diff line number Diff line change @@ -1854,7 +1854,7 @@ def transform_affine(self, points):
1854
1854
# The major speed trap here is just converting to the
1855
1855
# points to an array in the first place. If we can use
1856
1856
# more arrays upstream, that should help here.
1857
- if not isinstance (points , ( np .ma . MaskedArray , np . ndarray ) ):
1857
+ if not isinstance (points , np .ndarray ):
1858
1858
_api .warn_external (
1859
1859
f'A non-numpy array of type { type (points )} was passed in '
1860
1860
f'for transformation, which results in poor performance.' )
You can’t perform that action at this time.
0 commit comments