Skip to content

Commit 2a852a1

Browse files
committed
update intersphinx mapping and matplotlib urls
1 parent e3c1905 commit 2a852a1

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

docs/gallery_code/general/plot_anomaly_log_colouring.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
1414
To do this, we create a custom value mapping function (normalization) using
1515
the matplotlib Norm class `matplotlib.colours.SymLogNorm
16-
<https://matplotlib.org/api/_as_gen/matplotlib.colors.SymLogNorm.html#matplotlib.colors.SymLogNorm>`_.
16+
<https://matplotlib.org/stable/api/_as_gen/matplotlib.colors.SymLogNorm.html>`_.
1717
We use this to make a cell-filled pseudocolour plot with a colorbar.
1818
1919
NOTE: By "pseudocolour", we mean that each data point is drawn as a "cell"
2020
region on the plot, coloured according to its data value.
2121
This is provided in Iris by the functions :meth:`iris.plot.pcolor` and
2222
:meth:`iris.plot.pcolormesh`, which call the underlying matplotlib
2323
functions of the same names (i.e. `matplotlib.pyplot.pcolor
24-
<http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pcolor>`_
24+
<http://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pcolor>`_
2525
and `matplotlib.pyplot.pcolormesh
26-
<http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pcolormesh>`_).
26+
<http://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pcolormesh>`_).
2727
See also: http://en.wikipedia.org/wiki/False_color#Pseudocolor.
2828
2929
"""
@@ -65,7 +65,7 @@ def main():
6565

6666
# Use a standard colour map which varies blue-white-red.
6767
# For suitable options, see the 'Diverging colormaps' section in:
68-
# http://matplotlib.org/examples/color/colormaps_reference.html
68+
# http://matplotlib.org/stable/gallery/color/colormaps_reference.html
6969
anom_cmap = "bwr"
7070

7171
# Create a 'logarithmic' data normalization.

docs/src/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ def autolog(message):
184184
# -- intersphinx extension ----------------------------------------------------
185185
# See https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html
186186
intersphinx_mapping = {
187-
"cartopy": ("http://scitools.org.uk/cartopy/docs/latest/", None),
188-
"matplotlib": ("http://matplotlib.org/", None),
189-
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
190-
"python": ("http://docs.python.org/2.7", None),
191-
"scipy": ("http://docs.scipy.org/doc/scipy/reference/", None),
187+
"cartopy": ("https://scitools.org.uk/cartopy/docs/latest/", None),
188+
"matplotlib": ("https://matplotlib.org/stable/", None),
189+
"numpy": ("https://numpy.org/doc/stable/", None),
190+
"python": ("https://docs.python.org/3/", None),
191+
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
192192
}
193193

194194
# The name of the Pygments (syntax highlighting) style to use.
195195
pygments_style = "sphinx"
196196

197197
# -- plot_directive extension -------------------------------------------------
198-
# See https://matplotlib.org/3.1.3/devel/plot_directive.html#options
198+
# See https://matplotlib.org/stable/api/sphinxext_plot_directive_api.html#options
199199
plot_formats = [
200200
("png", 100),
201201
]

docs/src/whatsnew/3.0.1.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ This document explains the changes made to Iris for this release
480480
.. _Cartopy#1105: https://github.com/SciTools/cartopy/pull/1105
481481
.. _Cartopy#1117: https://github.com/SciTools/cartopy/pull/1117
482482
.. _Dask: https://github.com/dask/dask
483-
.. _matplotlib.dates.date2num: https://matplotlib.org/api/dates_api.html#matplotlib.dates.date2num
483+
.. _matplotlib.dates.date2num: https://matplotlib.org/stable/api/dates_api.html#matplotlib.dates.date2num
484484
.. _Proj: https://github.com/OSGeo/PROJ
485485
.. _black: https://black.readthedocs.io/en/stable/
486486
.. _Proj#1292: https://github.com/OSGeo/PROJ/pull/1292
@@ -510,7 +510,7 @@ This document explains the changes made to Iris for this release
510510
.. _numpy: https://github.com/numpy/numpy
511511
.. _xxHash: https://github.com/Cyan4973/xxHash
512512
.. _PyKE: https://pypi.org/project/scitools-pyke/
513-
.. _matplotlib.rcdefaults: https://matplotlib.org/3.1.1/api/matplotlib_configuration_api.html?highlight=rcdefaults#matplotlib.rcdefaults
513+
.. _matplotlib.rcdefaults: https://matplotlib.org/stable/api/matplotlib_configuration_api.html?highlight=rcdefaults#matplotlib.rcdefaults
514514
.. _@owena11: https://github.com/owena11
515515
.. _GitHub: https://github.com/SciTools/iris/issues/new/choose
516516
.. _readthedocs: https://readthedocs.org/

docs/src/whatsnew/3.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ This document explains the changes made to Iris for this release
463463
.. _Cartopy#1105: https://github.com/SciTools/cartopy/pull/1105
464464
.. _Cartopy#1117: https://github.com/SciTools/cartopy/pull/1117
465465
.. _Dask: https://github.com/dask/dask
466-
.. _matplotlib.dates.date2num: https://matplotlib.org/api/dates_api.html#matplotlib.dates.date2num
466+
.. _matplotlib.dates.date2num: https://matplotlib.org/stable/api/dates_api.html#matplotlib.dates.date2num
467467
.. _Proj: https://github.com/OSGeo/PROJ
468468
.. _black: https://black.readthedocs.io/en/stable/
469469
.. _Proj#1292: https://github.com/OSGeo/PROJ/pull/1292
@@ -493,7 +493,7 @@ This document explains the changes made to Iris for this release
493493
.. _numpy: https://github.com/numpy/numpy
494494
.. _xxHash: https://github.com/Cyan4973/xxHash
495495
.. _PyKE: https://pypi.org/project/scitools-pyke/
496-
.. _matplotlib.rcdefaults: https://matplotlib.org/3.1.1/api/matplotlib_configuration_api.html?highlight=rcdefaults#matplotlib.rcdefaults
496+
.. _matplotlib.rcdefaults: https://matplotlib.org/stable/api/matplotlib_configuration_api.html?highlight=rcdefaults#matplotlib.rcdefaults
497497
.. _@owena11: https://github.com/owena11
498498
.. _GitHub: https://github.com/SciTools/iris/issues/new/choose
499499
.. _readthedocs: https://readthedocs.org/

0 commit comments

Comments
 (0)