8000 Merge pull request #2306 from lpsinger/mollweide_latitude_grid · matplotlib/matplotlib@b36b148 · GitHub
[go: up one dir, main page]

Skip to content

Commit b36b148

Browse files
WeatherGodmdboom
authored andcommitted
Merge pull request #2306 from lpsinger/mollweide_latitude_grid
Mollweide latitude grid
1 parent f237a74 commit b36b148

File tree

5 files changed

+1866
-0
lines changed

5 files changed

+1866
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,11 +1003,15 @@ def _update_ticks(self, renderer):
10031003
except:
10041004
warnings.warn("Unable to find pixel distance along axis for interval padding; assuming no interval padding needed.")
10051005
ds1 = 0.0
1006+
if np.isnan(ds1):
1007+
ds1 = 0.0
10061008
try:
10071009
ds2 = self._get_pixel_distance_along_axis(interval_expanded[1], +0.5)
10081010
except:
10091011
warnings.warn("Unable to find pixel distance along axis for interval padding; assuming no interval padding needed.")
10101012
ds2 = 0.0
1013+
if np.isnan(ds2):
1014+
ds2 = 0.0
10111015
interval_expanded = (interval_expanded[0] - ds1,
10121016
interval_expanded[1] + ds2)
10131017

Binary file not shown.
Loading

0 commit comments

Comments
 (0)
0