Skip to content

Commit 0a6e5f5

Browse files
committed
Fix issue where format() removes cartopy labels
1 parent 734e477 commit 0a6e5f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proplot/axes/geo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,11 @@ def _update_major_gridlines(
11321132
)
11331133
lonarray = [False] * 5
11341134
array = [
1135-
True if lon and lat else 'x' if lon else 'y' if lat else False
1135+
True if lon and lat
1136+
else 'x' if lon
1137+
else 'y' if lat
1138+
else False if lon is not None or lon is not None
1139+
else None
11361140
for lon, lat in zip(lonarray, latarray)
11371141
]
11381142
self._toggle_gridliner_labels(gl, *array[:2], *array[2:4], array[4])

0 commit comments

Comments
 (0)