Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abfdecf

Browse files
authored
Merge pull request #16495 from anntzer/unbasemap
Deemphasize basemap in user-facing docs.
2 parents acc7ecb + 7902202 commit abfdecf

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

doc/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,12 @@ Third party packages
160160

161161
A large number of :doc:`third party packages <thirdpartypackages/index>`
162162
extend and build on Matplotlib functionality, including several higher-level
163-
plotting interfaces (seaborn_, HoloViews_, ggplot_, ...), and two projection
164-
and mapping toolkits (Basemap_ and Cartopy_).
163+
plotting interfaces (seaborn_, HoloViews_, ggplot_, ...), and a projection
164+
and mapping toolkit (Cartopy_).
165165

166166
.. _seaborn: https://seaborn.pydata.org
167167
.. _HoloViews: https://holoviews.org
168168
.. _ggplot: http://ggplot.yhathq.com
169-
.. _Basemap: https://matplotlib.org/basemap
170169
.. _Cartopy: https://scitools.org.uk/cartopy/docs/latest
171170

172171
Citing Matplotlib

examples/misc/custom_projection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,8 @@ def set_yscale(self, *args, **kwargs):
257257
# set_xlim and set_ylim to ignore any input. This also applies to
258258
# interactive panning and zooming in the GUI interfaces.
259259
def set_xlim(self, *args, **kwargs):
260-
raise TypeError("It is not possible to change axes limits "
261-
"for geographic projections. Please consider "
262-
"using Basemap or Cartopy.")
260+
raise TypeError("Changing axes limits of a geographic projection is "
261+
"not supported. Please consider using Cartopy.")
263262

264263
set_ylim = set_xlim
265264

examples/subplots_axes_and_figures/geo_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Geographic Projections
44
======================
55
6-
This shows 4 possible projections using subplot. Matplotlib also
7-
supports `Basemaps Toolkit <https://matplotlib.org/basemap>`_ and
8-
`Cartopy <http://scitools.org.uk/cartopy>`_ for geographic projections.
6+
This shows 4 possible geographic projections. Cartopy_ supports more
7+
projections.
98
9+
.. _Cartopy: http://scitools.org.uk/cartopy
1010
"""
1111

1212
import matplotlib.pyplot as plt

lib/matplotlib/projections/geo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ def set_yscale(self, *args, **kwargs):
147147
set_xscale = set_yscale
148148

149149
def set_xlim(self, *args, **kwargs):
150-
raise TypeError("It is not possible to change axes limits "
151-
"for geographic projections. Please consider "
152-
"using Basemap or Cartopy.")
150+
raise TypeError("Changing axes limits of a geographic projection is "
151+
"not supported. Please consider using Cartopy.")
153152

154153
set_ylim = set_xlim
155154

0 commit comments

Comments
 (0)