Skip to content

Commit a023ad4

Browse files
authored
Update Cartopy references (#322)
1 parent 88591ac commit a023ad4

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ or clone the repository and run ``pip install -e .`` inside
2424
the ``ultraplot`` folder.
2525

2626
ultraplot's only hard dependency is `matplotlib <https://matplotlib.org/>`__.
27-
The *soft* dependencies are `cartopy <https://scitools.org.uk/cartopy/docs/latest/>`__,
27+
The *soft* dependencies are `cartopy <https://cartopy.readthedocs.io/stable/>`__,
2828
`basemap <https://matplotlib.org/basemap/index.html>`__,
2929
`xarray <http://xarray.pydata.org>`__, and `pandas <https://pandas.pydata.org>`__.
3030
See the documentation for details.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def __getattr__(self, name):
229229
"numpy": ("https://numpy.org/doc/stable/", None),
230230
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
231231
"xarray": ("https://docs.xarray.dev/en/stable/", None),
232-
"cartopy": ("https://scitools.org.uk/cartopy/docs/latest/", None),
232+
"cartopy": ("https://cartopy.readthedocs.io/stable/", None),
233233
"basemap": ("https://matplotlib.org/basemap/stable/", None),
234234
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
235235
"pint": ("https://pint.readthedocs.io/en/stable/", None),

docs/external-links.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies of UltraPlot, or are distributed with UltraPlot:
2222
* `pint <https://github.com/hgrecco/pint>`__ - A package for tracking and
2323
converting between physical units during mathematical operations and when
2424
plotting in matplotlib axes.
25-
* `cartopy <https://scitools.org.uk/cartopy/docs/latest/>`__ - A package for
25+
* `cartopy <https://cartopy.readthedocs.io/stable/>`__ - A package for
2626
plotting geographic and geophysical data in matplotlib. Includes a suite of
2727
different map projections.
2828
* `basemap <https://github.com/matplotlib/basemap>`__ - The original cartographic

docs/projections.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
# .. _polar: https://matplotlib.org/3.1.0/gallery/pie_and_polar_charts/polar_demo.html
1919
#
20-
# .. _cartopy: https://scitools.org.uk/cartopy/docs/latest/
20+
# .. _cartopy: https://cartopy.readthedocs.io/stable/
2121
#
2222
# .. _basemap: https://matplotlib.org/basemap/index.html
2323
#
@@ -205,7 +205,7 @@
205205
# to :func:`~ultraplot.axes.GeoAxes.format`.
206206
# * By default, UltraPlot gives circular boundaries to polar cartopy and basemap
207207
# projections like :class:`~cartopy.crs.NorthPolarStereo` (see `this example
208-
# <https://scitools.org.uk/cartopy/docs/latest/gallery/lines_and_polygons/always_circular_stereo.html>`__
208+
# <https://cartopy.readthedocs.io/stable/gallery/lines_and_polygons/always_circular_stereo.html>`__
209209
# from the cartopy website). To disable this feature, set :rcraw:`geo.round` to
210210
# ``False`` or pass ``round=False` to :func:`~ultraplot.axes.GeoAxes.format`. Please note
211211
# that older versions of cartopy cannot add gridlines to maps bounded by circles.
@@ -510,7 +510,7 @@
510510
# Included projections
511511
# --------------------
512512
#
513-
# The available `cartopy <https://scitools.org.uk/cartopy/docs/latest/>`__
513+
# The available `cartopy <https://cartopy.readthedocs.io/stable/>`__
514514
# and `basemap <https://matplotlib.org/basemap/index.html>`__ projections are
515515
# plotted below. The full table of projection names with links to the relevant
516516
# `PROJ <https://proj.org>`__ documentation is found :ref:`here <proj_table>`.

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _cartopy: https://scitools.org.uk/cartopy/docs/latest/
1+
.. _cartopy: https://cartopy.readthedocs.io/stable/
22

33
.. _basemap: https://matplotlib.org/basemap/index.html
44

docs/why.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _cartopy: https://scitools.org.uk/cartopy/docs/latest/
1+
.. _cartopy: https://cartopy.readthedocs.io/stable/
22

33
.. _basemap: https://matplotlib.org/basemap/index.html
44

ultraplot/axes/geo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def _add_gridline_labels(self, ax, gl, padding=8):
11511151
"""
11521152
This function is intended for the Basemap backend
11531153
and mirrors the label placement behavior of Cartopy.
1154-
See: https://scitools.org.uk/cartopy/docs/v0.16/_modules/cartopy/mpl/gridliner.html#Gridliner
1154+
See: https://cartopy.readthedocs.io/stable/reference/generated/cartopy.mpl.gridliner.Gridliner.html
11551155
"""
11561156
sides = dict()
11571157
for which, formatter in zip("xy", gl):
@@ -1341,7 +1341,7 @@ def _get_circle_path(N=100):
13411341
Return a circle `~matplotlib.path.Path` used as the outline for polar
13421342
stereographic, azimuthal equidistant, Lambert conformal, and gnomonic
13431343
projections. This was developed from `this cartopy example \
1344-
<https://scitools.org.uk/cartopy/docs/v0.15/examples/always_circular_stereo.html>`__.
1344+
<https://cartopy.readthedocs.io/v0.25.0.post2/gallery/lines_and_polygons/always_circular_stereo.html>`__.
13451345
"""
13461346
theta = np.linspace(0, 2 * np.pi, N)
13471347
center, radius = [0.5, 0.5], 0.5

0 commit comments

Comments
 (0)