Skip to content

Commit bc95b91

Browse files
authored
Update _base.py
1 parent 9d61661 commit bc95b91

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:
1683+
if aspect <= 0:
16841684
raise ValueError("aspect must be positive")
16851685

16861686
if share:

0 commit comments

Comments
 (0)