10000 FIX: take into accound two-tuple limits · matplotlib/matplotlib@8139aa9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8139aa9

Browse files
committed
FIX: take into accound two-tuple limits
1 parent 32e9b42 commit 8139aa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,9 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
12561256
'argument and kwarg "ymax"')
12571257
else:
12581258
top = ymax
1259+
if top is None and len(bottom) == 2:
1260+
top = bottom[1]
1261+
bottom = bottom[0]
12591262
if bottom >= top:
12601263
raise ValueError('polar axes y/r-limits must be increasing; '
12611264
'i.e. bottom < top')

0 commit comments

Comments
 (0)
0