Skip to content

Commit c3ea40f

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

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
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/common_links.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
.. _issue: https://github.com/SciTools/iris/issues
1919
.. _issues: https://github.com/SciTools/iris/issues
2020
.. _legacy documentation: https://scitools.org.uk/iris/docs/v2.4.0/
21-
.. _matplotlib: https://matplotlib.org/
21+
.. _matplotlib: https://matplotlib.org/stable/
2222
.. _napolean: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/sphinxcontrib.napoleon.html
2323
.. _nox: https://nox.thea.codes/en/stable/
2424
.. _New Issue: https://github.com/scitools/iris/issues/new/choose

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ This document explains the changes made to Iris for this release
470470
with `flake8`_ and `black`_. (:pull:`3928`)
471471

472472
.. _Read the Docs: https://scitools-iris.readthedocs.io/en/latest/
473-
.. _Matplotlib: https://matplotlib.org/
473+
.. _Matplotlib: https://matplotlib.org/stable/
474474
.. _CF units rules: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#units
475475
.. _CF Ancillary Data: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#ancillary-data
476476
.. _Quality Flags: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#flags
@@ -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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ This document explains the changes made to Iris for this release
453453
with `flake8`_ and `black`_. (:pull:`3928`)
454454

455455
.. _Read the Docs: https://scitools-iris.readthedocs.io/en/latest/
456-
.. _Matplotlib: https://matplotlib.org/
456+
.. _Matplotlib: https://matplotlib.org/stable/
457457
.. _CF units rules: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#units
458458
.. _CF Ancillary Data: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#ancillary-data
459459
.. _Quality Flags: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#flags
@@ -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/

docs/src/whatsnew/latest.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ This document explains the changes made to Iris for this release
8686
on :ref:`installing_iris` and to the footer of all pages. Also added the
8787
copyright years to the footer. (:pull:`3989`)
8888

89+
#. `@bjlittle`_ updated the ``intersphinx_mapping`` and fixed redirected the
90+
documentation to use ``stable`` URLs for `matplotlib`_. (:pull:`4003`)
91+
8992

9093
💼 Internal
9194
===========

0 commit comments

Comments
 (0)