diff --git a/lib/matplotlib/transforms.py b/lib/matplotlib/transforms.py index 75fda8c1d230..3e1ba4a932ea 100644 --- a/lib/matplotlib/transforms.py +++ b/lib/matplotlib/transforms.py @@ -2738,7 +2738,7 @@ def nonsingular(vmin, vmax, expander=0.001, tiny=1e-15, increasing=True): swapped = True maxabsvalue = max(abs(vmin), abs(vmax)) - if maxabsvalue < (1e6 / tiny) * np.MachAr(float).xmin: + if maxabsvalue < (1e6 / tiny) * np.finfo(float).min: vmin = -expander vmax = expander