Skip to content

Commit

Permalink
Fix warped images placed behind elliptical map background
Browse files Browse the repository at this point in the history
Solves GitHub issue #577.
  • Loading branch information
molinav committed Nov 21, 2023
1 parent 25672c6 commit 34ccef9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ https://semver.org/spec/v2.0.0.html
### Fixed
- Fix references to removed `numpy.float` alias (solves issue [#589],
thanks to @quickbrett).
- Fix bug with elliptical maps causing warped images (Blue Marble,
ETOPO, Shaded Relief) to be shown behind the map background when the
map boundary is not initialised manually (solves issue [#577], thanks
to @YilongWang).

## [1.3.8] - 2023-08-18

Expand Down Expand Up @@ -994,6 +998,8 @@ https://github.com/matplotlib/basemap/issues/581
https://github.com/matplotlib/basemap/pull/580
[#579]:
https://github.com/matplotlib/basemap/issues/579
[#577]:
https://github.com/matplotlib/basemap/issues/577
[#573]:
https://github.com/matplotlib/basemap/issues/573
[#564]:
Expand Down
2 changes: 1 addition & 1 deletion packages/basemap/src/mpl_toolkits/basemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3203,7 +3203,7 @@ def set_axes_limits(self,ax=None):
# first draw boundary, no fill
limb1 = self.drawmapboundary(fill_color='none', ax=ax)
# draw another filled patch, with no boundary.
limb2 = self.drawmapboundary(linewidth=0, ax=ax)
limb2 = self.drawmapboundary(fill_color='none', linewidth=0, ax=ax)
self._mapboundarydrawn = limb2
# for elliptical map, always turn off axis_frame.
if ((self.projection in ['ortho', 'geos', 'nsper', 'aeqd'] and
Expand Down

0 comments on commit 34ccef9

Please sign in to comment.