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

Skip to content

Commit fd68836

Browse files
committed
FIX: allow bottom-only call
1 parent 665cf51 commit fd68836

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,9 +1202,8 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
12021202
'argument and kwarg "ymax"')
12031203
else:
12041204
top = ymax
1205-
if top is None and len(bottom) == 2:
1206-
top = bottom[1]
1207-
bottom = bottom[0]
1205+
if top is None and np.iterable(bottom):
1206+
bottom, top = bottom[0], bottom[1]
12081207

12091208
return super().set_ylim(bottom=bottom, top=top, emit=emit, auto=auto)
12101209

0 commit comments

Comments
 (0)