Skip to content

Commit 14662e0

Browse files
tacaswelltimhoffm
andauthored
MNT: switch from ~ to not
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 427ff32 commit 14662e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
16801680
aspect = 1
16811681
if not cbook._str_equal(aspect, 'auto'):
16821682
aspect = float(aspect) # raise ValueError if necessary
1683-
if aspect <= 0 or ~np.isfinite(aspect):
1683+
if aspect <= 0 or not np.isfinite(aspect):
16841684
raise ValueError("aspect must be finite and positive ")
16851685

16861686
if share:

0 commit comments

Comments
 (0)