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

Skip to content

Commit 1fad1d2

Browse files
authored
Merge pull request #17112 from timhoffm/link-redirects
DOC: Fix some link redirects in docs
2 parents d2e18aa + 45d005a commit 1fad1d2

29 files changed

+48
-47
lines changed

INSTALL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ Dependencies
108108
Matplotlib requires the following dependencies:
109109

110110
* `Python <https://www.python.org/downloads/>`_ (>= 3.6)
111-
* `NumPy <http://www.numpy.org>`_ (>= 1.15)
111+
* `NumPy <https://numpy.org>`_ (>= 1.15)
112112
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`_
113-
* `cycler <http://matplotlib.org/cycler/>`_ (>= 0.10.0)
113+
* `cycler <https://matplotlib.org/cycler/>`_ (>= 0.10.0)
114114
* `dateutil <https://pypi.org/project/python-dateutil>`_ (>= 2.1)
115115
* `kiwisolver <https://github.com/nucleic/kiwi>`_ (>= 1.0.0)
116116
* `Pillow <https://pillow.readthedocs.io/en/latest/>`_ (>= 6.2)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
.. _Downloads: https://pepy.tech/project/matplotlib/month
3939

4040
.. |NUMFocus| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A
41-
.. _NUMFocus: https://www.numfocus.org
41+
.. _NUMFocus: https://numfocus.org
4242

4343
.. image:: https://matplotlib.org/_static/logo2.svg
4444

doc/api/toolkits/mplot3d/faq.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
mplot3d FAQ
55
***********
66

7-
How is mplot3d different from MayaVi?
7+
How is mplot3d different from Mayavi?
88
=====================================
9-
`MayaVi2 <http://code.enthought.com/projects/mayavi/documentation.php>`_
9+
`Mayavi <https://docs.enthought.com/mayavi/mayavi/>`_
1010
is a very powerful and featureful 3D graphing library. For advanced
1111
3D scenes and excellent rendering capabilities, it is highly recommended to
12-
use MayaVi2.
12+
use Mayavi.
1313

1414
mplot3d was intended to allow users to create simple 3D graphs with the same
1515
"look-and-feel" as matplotlib's 2D plots. Furthermore, users can use the same
@@ -38,7 +38,7 @@ rendered properly in matplotlib's 2D rendering engine.
3838
This problem will likely not be solved until OpenGL support is added to all of
3939
the backends (patches are greatly welcomed). Until then, if you need complex
4040
3D scenes, we recommend using
41-
`MayaVi <http://code.enthought.com/projects/mayavi/documentation.php>`_.
41+
`MayaVi <https://docs.enthought.com/mayavi/mayavi/>`_.
4242

4343

4444
I don't like how the 3D plot is laid out, how do I change that?

doc/devel/MEP/MEP11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Implementation
117117
For installing from source, and assuming the user has all of the
118118
C-level compilers and dependencies, this can be accomplished fairly
119119
easily using distribute_ and following the instructions `here
120-
<https://pypi.python.org/pypi/distribute>`_. The only anticipated
120+
<https://pypi.org/project/distribute>`_. The only anticipated
121121
change to the matplotlib library code will be to import pyparsing_
122122
from the top-level namespace rather than from within matplotlib. Note
123123
that distribute_ will also allow us to remove the direct dependency

doc/devel/MEP/MEP12.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ sections described above. "Clean-up" should involve:
105105

106106

107107
* PEP8_ clean-ups (running `flake8
108-
<https://pypi.python.org/pypi/flake8>`_, or a similar checker, is
108+
<https://pypi.org/project/flake8>`_, or a similar checker, is
109109
highly recommended)
110110
* Commented-out code should be removed.
111111
* Replace uses of `pylab` interface with `.pyplot` (+ `numpy`,
@@ -141,8 +141,8 @@ page instead of the gallery examples.
141141
references to that example. For example, the API documentation for
142142
:file:`axes.py` and :file:`pyplot.py` may use these examples to generate
143143
plots. Use your favorite search tool (e.g., grep, ack, `grin
144-
<https://pypi.python.org/pypi/grin>`_, `pss
145-
<https://pypi.python.org/pypi/pss>`_) to search the matplotlib
144+
<https://pypi.org/project/grin>`_, `pss
145+
<https://pypi.org/project/pss>`_) to search the matplotlib
146146
package. See `2dc9a46
147147
<https://github.com/tonysyu/matplotlib/commit/2dc9a4651e5e566afc0866c603aa8d06aaf32b71>`_
148148
and `aa6b410

doc/devel/release_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,5 +362,5 @@ numpy/scipy/scikit-image mailing lists.
362362

363363
In addition, announcements should be made on social networks (twitter
364364
via the ``@matplotlib`` account, any other via personal accounts).
365-
`NumFOCUS <https://www.numfocus.org/>`__ should be contacted for
365+
`NumFOCUS <https://numfocus.org/>`__ should be contacted for
366366
inclusion in their newsletter.

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Open source
187187

188188
.. raw:: html
189189

190-
<a href="https://www.numfocus.org/">
190+
<a href="https://numfocus.org/">
191191
<img src="_static/numfocus_badge.png"
192192
alt="A Fiscally Sponsored Project of NUMFocus"
193193
style="float:right; margin-left:20px" />
@@ -210,7 +210,7 @@ the NumFOCUS organization or to the `John Hunter Technology Fellowship
210210
<jdh-fellowship_>`_.
211211

212212
.. _donating: https://numfocus.org/donate-to-matplotlib
213-
.. _jdh-fellowship: https://www.numfocus.org/programs/john-hunter-technology-fellowship/
213+
.. _jdh-fellowship: https://numfocus.org/programs/john-hunter-technology-fellowship/
214214
.. _nf: https://numfocus.org
215215

216216
The :doc:`Matplotlib license <users/license>` is based on the `Python Software

doc/thirdpartypackages/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ Mapping toolkits
1818

1919
Basemap
2020
=======
21-
`Basemap <http://matplotlib.org/basemap>`_ plots data on map projections, with
22-
continental and political boundaries.
21+
`Basemap <https://matplotlib.org/basemap/>`_ plots data on map projections,
22+
with continental and political boundaries.
2323

2424
.. image:: /_static/basemap_contour1.png
2525
:height: 400px
2626

2727
Cartopy
2828
=======
29-
`Cartopy <http://scitools.org.uk/cartopy/docs/latest>`_ builds on top
29+
`Cartopy <https://scitools.org.uk/cartopy/docs/latest>`_ builds on top
3030
of Matplotlib to provide object oriented map projection definitions
3131
and close integration with Shapely for powerful yet easy-to-use vector
3232
data processing tools. An example plot from the `Cartopy gallery
33-
<http://scitools.org.uk/cartopy/docs/latest/gallery.html>`_:
33+
<https://scitools.org.uk/cartopy/docs/latest/gallery.html>`_:
3434

3535
.. image:: /_static/cartopy_hurricane_katrina_01_00.png
3636
:height: 400px
@@ -68,7 +68,7 @@ to python based on Matplotlib.
6868
holoviews
6969
=========
7070
`holoviews <http://holoviews.org>`_ makes it easier to visualize data
71-
interactively, especially in a `Jupyter notebook <http://jupyter.org>`_, by
71+
interactively, especially in a `Jupyter notebook <https://jupyter.org>`_, by
7272
providing a set of declarative plotting objects that store your data and
7373
associated metadata. Your data is then immediately visualizable alongside or
7474
overlaid with other data, either statically or with automatically provided
@@ -120,7 +120,7 @@ diagrams.
120120

121121
mpl-probscale
122122
=============
123-
`mpl-probscale <http://matplotlib.org/mpl-probscale/>`_ is a small extension
123+
`mpl-probscale <https://matplotlib.org/mpl-probscale/>`_ is a small extension
124124
that allows Matplotlib users to specify probabilty scales. Simply importing the
125125
``probscale`` module registers the scale with Matplotlib, making it accessible
126126
via e.g., ``ax.set_xscale('prob')`` or ``plt.yscale('prob')``.

doc/users/history.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Matplotlib is a library for making 2D plots of arrays in `Python
1111
the MATLAB graphics commands, it is
1212
independent of MATLAB, and can be used in a Pythonic, object oriented
1313
way. Although Matplotlib is written primarily in pure Python, it
14-
makes heavy use of `NumPy <http://www.numpy.org>`_ and other extension
14+
makes heavy use of `NumPy <https://numpy.org>`_ and other extension
1515
code to provide good performance even for large arrays.
1616

1717
Matplotlib is designed with the philosophy that you should be able to

doc/users/prev_whats_new/whats_new_1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Much improved software carpentry
128128

129129
The matplotlib trunk is probably in as good a shape as it has ever
130130
been, thanks to improved `software carpentry
131-
<http://software-carpentry.org/>`__. We now have a `buildbot
131+
<https://software-carpentry.org/>`__. We now have a `buildbot
132132
<https://buildbot.net>`__ which runs a suite of `nose
133133
<http://code.google.com/p/python-nose/>`__ regression tests on every
134134
svn commit, auto-generating a set of images and comparing them against

doc/users/prev_whats_new/whats_new_1.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ New plotting features
8585
``````````````````````````````
8686
To give your plots a sense of authority that they may be missing,
8787
Michael Droettboom (inspired by the work of many others in
88-
:ghpull:`1329`) has added an `xkcd-style <http://xkcd.com/>`__ sketch
88+
:ghpull:`1329`) has added an `xkcd-style <https://xkcd.com/>`__ sketch
8989
plotting mode. To use it, simply call `matplotlib.pyplot.xkcd`
9090
before creating your plot. For really fine control, it is also possible
9191
to modify each artist's sketch parameters individually with

doc/users/prev_whats_new/whats_new_1.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ same way as any other matplotlib backend. Because figures require a connection
4646
to the IPython notebook server for their interactivity, once the notebook is
4747
saved, each figure will be rendered as a static image - thus allowing
4848
non-interactive viewing of figures on services such as
49-
`nbviewer <http://nbviewer.ipython.org/>`__.
49+
`nbviewer <https://nbviewer.ipython.org/>`__.
5050

5151

5252

doc/users/prev_whats_new/whats_new_1.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ wx backend has been updated
174174
```````````````````````````
175175

176176
The wx backend can now be used with both wxPython classic and
177-
`Phoenix <http://wxpython.org/Phoenix/docs/html/main.html>`__.
177+
`Phoenix <https://wxpython.org/Phoenix/docs/html/main.html>`__.
178178

179179
wxPython classic has to be at least version 2.8.12 and works on Python 2.x. As
180180
of May 2015 no official release of wxPython Phoenix is available but a

doc/users/prev_whats_new/whats_new_2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ The binding selection rules are as follows:
284284
Thus, to force usage of PGI when both bindings are installed, import it first.
285285

286286
.. _PGI: https://pgi.readthedocs.io/en/latest/
287-
.. _PyGObject: http://pygobject.readthedocs.io/en/latest/#
287+
.. _PyGObject: https://pygobject.readthedocs.io/en/latest/
288288

289289

290290

examples/misc/image_thumbnail_sgskip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Matplotlib relies on Pillow_ for reading images, and thus supports all formats
88
supported by Pillow.
99
10-
.. _Pillow: http://python-pillow.org/
10+
.. _Pillow: https://python-pillow.org/
1111
"""
1212

1313
from argparse import ArgumentParser

examples/showcase/anatomy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def text(x, y, text):
137137
connectionstyle="arc3",
138138
color=color))
139139

140-
ax.text(4.0, -0.4, "Made with http://matplotlib.org",
140+
ax.text(4.0, -0.4, "Made with https://matplotlib.org",
141141
fontsize=10, ha="right", color='.5')
142142

143143
plt.show()

examples/showcase/mandelbrot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def mandelbrot_set(xmin, xmax, ymin, ymax, xn, yn, maxiter, horizon=2.0):
6666
# Some advertisement for matplotlib
6767
year = time.strftime("%Y")
6868
text = ("The Mandelbrot fractal set\n"
69-
"Rendered with matplotlib %s, %s - http://matplotlib.org"
69+
"Rendered with matplotlib %s, %s - https://matplotlib.org"
7070
% (matplotlib.__version__, year))
7171
ax.text(xmin+.025, ymin+.025, text, color="white", fontsize=12, alpha=0.5)
7272

examples/statistics/boxplot_vs_violin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Violin plots require matplotlib >= 1.4.
1818
1919
For more information on violin plots, the scikit-learn docs have a great
20-
section: http://scikit-learn.org/stable/modules/density.html
20+
section: https://scikit-learn.org/stable/modules/density.html
2121
"""
2222

2323
import matplotlib.pyplot as plt

examples/statistics/customized_violin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
of the violins are modified.
1212
1313
For more information on violin plots, the scikit-learn docs have a great
14-
section: http://scikit-learn.org/stable/modules/density.html
14+
section: https://scikit-learn.org/stable/modules/density.html
1515
"""
1616

1717
import matplotlib.pyplot as plt

examples/statistics/violinplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
and how to modify the band-width of the KDE (``bw_method``).
1414
1515
For more information on violin plots and KDE, the scikit-learn docs
16-
have a great section: http://scikit-learn.org/stable/modules/density.html
16+
have a great section: https://scikit-learn.org/stable/modules/density.html
1717
"""
1818

1919
import numpy as np

lib/matplotlib/__init__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,18 +443,19 @@ def _create_tmp_config_or_cache_dir():
443443

444444
def _get_xdg_config_dir():
445445
"""
446-
Return the XDG configuration directory, according to the `XDG
447-
base directory spec
448-
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_.
446+
Return the XDG configuration directory, according to the XDG base
447+
directory spec:
448+
449+
https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
449450
"""
450451
return os.environ.get('XDG_CONFIG_HOME') or str(Path.home() / ".config")
451452

452453

453454
def _get_xdg_cache_dir():
454455
"""
455-
Return the XDG cache directory, according to the `XDG
456-
base directory spec
457-
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_.
456+
Return the XDG cache directory, according to the XDG base directory spec:
457+
458+
https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
458459
"""
459460
return os.environ.get('XDG_CACHE_HOME') or str(Path.home() / ".cache")
460461

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2787,7 +2787,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
27872787
-----
27882788
.. seealso::
27892789
The MATLAB function
2790-
`stem <http://www.mathworks.com/help/techdoc/ref/stem.html>`_
2790+
`stem <https://www.mathworks.com/help/matlab/ref/stem.html>`_
27912791
which inspired this method.
27922792
"""
27932793
if not 1 <= len(args) <= 5:

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ def thumbnail(infile, thumbfile, scale=0.1, interpolation='bilinear',
16391639
thus supports a wide range of file formats, including PNG, JPG, TIFF
16401640
and others.
16411641
1642-
.. _Pillow: http://python-pillow.org/
1642+
.. _Pillow: https://python-pillow.org/
16431643
16441644
thumbfile : str or file-like
16451645
The thumbnail filename.

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def _init_legend_box(self, handles, labels, markerfirst=True):
726726
cbook._warn_external(
727727
"Legend does not support {!r} instances.\nA proxy artist "
728728
"may be used instead.\nSee: "
729-
"http://matplotlib.org/users/legend_guide.html"
729+
"https://matplotlib.org/users/legend_guide.html"
730730
"#creating-artists-specifically-for-adding-to-the-legend-"
731731
"aka-proxy-artists".format(orig_handle))
732732
# We don't have a handle for this artist, so we just defer

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ def draw(self, renderer):
16211621
Lancaster, Don. *Approximating a Circle or an Ellipse Using
16221622
Four Bezier Cubic Splines.*
16231623
1624-
http://www.tinaja.com/glib/ellipse4.pdf
1624+
https://www.tinaja.com/glib/ellipse4.pdf
16251625
16261626
There is a use case where very large ellipses must be drawn
16271627
with very high accuracy, and it is too expensive to render the

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def circle(cls, center=(0., 0.), radius=1., readonly=False):
733733
The circle is approximated using 8 cubic Bezier curves, as described in
734734
735735
Lancaster, Don. `Approximating a Circle or an Ellipse Using Four
736-
Bezier Cubic Splines <http://www.tinaja.com/glib/ellipse4.pdf>`_.
736+
Bezier Cubic Splines <https://www.tinaja.com/glib/ellipse4.pdf>`_.
737737
"""
738738
MAGIC = 0.2652031
739739
SQRTHALF = np.sqrt(0.5)

lib/matplotlib/projections/geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def transform_non_affine(self, xy):
393393
# docstring inherited
394394
x, y = xy.T
395395
# from Equations (7, 8) of
396-
# http://mathworld.wolfram.com/MollweideProjection.html
396+
# https://mathworld.wolfram.com/MollweideProjection.html
397397
theta = np.arcsin(y / np.sqrt(2))
398398
longitude = (np.pi / (2 * np.sqrt(2))) * x / np.cos(theta)
399399
latitude = np.arcsin((2 * theta + np.sin(2 * theta)) / np.pi)

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ def colormaps():
17791779
========= ===================================================
17801780
17811781
The following colormaps are based on the `ColorBrewer
1782-
<http://colorbrewer2.org>`_ color specifications and designs developed by
1782+
<https://colorbrewer2.org>`_ color specifications and designs developed by
17831783
Cynthia Brewer:
17841784
17851785
ColorBrewer Diverging (luminance is highest at the midpoint, and
@@ -1955,7 +1955,7 @@ def colormaps():
19551955
.. [#] Rainbow colormaps, ``jet`` in particular, are considered a poor
19561956
choice for scientific visualization by many researchers: `Rainbow Color
19571957
Map (Still) Considered Harmful
1958-
<http://ieeexplore.ieee.org/document/4118486/?arnumber=4118486>`_
1958+
<https://ieeexplore.ieee.org/document/4118486/?arnumber=4118486>`_
19591959
19601960
.. [#] Resembles "BkBlAqGrYeOrReViWh200" from NCAR Command
19611961
Language. See `Color Table Gallery

tutorials/intermediate/color_cycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.. note::
1010
1111
More complete documentation of the ``cycler`` API can be found
12-
`here <http://matplotlib.org/cycler/>`_.
12+
`here <https://matplotlib.org/cycler/>`_.
1313
1414
This example demonstrates two different APIs:
1515

0 commit comments

Comments
 (0)