Skip to content

Commit ef0446f

Browse files
committed
More robust GeoAxes gridline selection (close #312)
1 parent 71a0ca6 commit ef0446f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proplot/axes/geo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ def _get_extent(self):
221221
def _pad_ticks(ticks, vmin, vmax):
222222
# Wrap up to the longitude/latitude range to avoid
223223
# giant lists of 10,000 gridline locations.
224+
if len(ticks) == 0:
225+
return ticks
224226
range_ = max(ticks) - min(ticks)
225227
vmin = max(vmin, ticks[0] - range_)
226228
vmax = min(vmax, ticks[-1] + range_)

0 commit comments

Comments
 (0)