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

Skip to content

Commit 8cd356a

Browse files
oscargusrcomer
andauthored
Change the way to check for a masked constant.
Co-authored-by: Ruth Comer <[email protected]>
1 parent 5c6a7d2 commit 8cd356a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.core.MaskedConstant):
626+
if value is np.ma.masked:
627627
return ""
628628
if isinstance(value, Integral):
629629
fmt = "%d"

0 commit comments

Comments
 (0)