Skip to content

Commit 981ed04

Browse files
committed
Fix issue translating 'autoextent' to 'extent'
1 parent 29db0b9 commit 981ed04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proplot/axes/geo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ def format(
609609
rc_kw['grid.labelweight'] = labelweight
610610
with rc.context(rc_kw, mode=rc_mode):
611611
# Apply extent mode first
612+
# NOTE: We deprecate autoextent on _CartopyAxes with _rename_kwargs which
613+
# does not translate boolean flag. So here apply translation.
614+
if extent is not None and not isinstance(extent, str):
615+
extent = ('globe', 'auto')[int(bool(extent))]
612616
self._update_boundary(round)
613617
self._update_extent_mode(extent, boundinglat)
614618

0 commit comments

Comments
 (0)