8000 Merge pull request #11268 from ImportanceOfBeingErnest/sanitize-some-… · matplotlib/matplotlib@4814755 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4814755

Browse files
authored
Merge pull request #11268 from ImportanceOfBeingErnest/sanitize-some-doc-links
DOC: Sanitize some internal documentation links
2 parents ec66f36 + 2f78a1e commit 4814755

File tree

11 files changed

+26
-20
lines changed

11 files changed

+26
-20
lines changed

examples/lines_bars_and_markers/markevery_prop_cycle.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
66
This example demonstrates a working solution to issue #8576, providing full
77
support of the markevery property for axes.prop_cycle assignments through
8-
rcParams. Makes use of the same list of markevery cases from
9-
https://matplotlib.org/examples/pylab_examples/markevery_demo.html
8+
rcParams. Makes use of the same list of markevery cases from the
9+
:doc:`markevery demo
10+
</gallery/lines_bars_and_markers/markevery_demo>`.
1011
1112
Renders a plot with shifted-sine curves along each column with
1213
a unique markevery value for each sine curve.

examples/text_labels_and_annotations/annotation_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This includes highlighting specific points of interest and using various
88
visual tools to call attention to this point. For a more complete and in-depth
99
description of the annotation and text tools in :mod:`matplotlib`, see the
10-
`tutorial on annotation <http://matplotlib.org/users/annotations.html>`_.
10+
:doc:`tutorial on annotation </tutorials/text/annotations>`.
1111
"""
1212

1313
import matplotlib.pyplot as plt

examples/text_labels_and_annotations/tex_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
=================================
55
66
You can use TeX to render all of your matplotlib text if the rc
7-
parameter text.usetex is set. This works currently on the agg and ps
7+
parameter ``text.usetex`` is set. This works currently on the agg and ps
88
backends, and requires that you have tex and the other dependencies
9-
described a 10000 t http://matplotlib.org/users/usetex.html
9+
described in the :doc:`/tutorials/text/usetex` tutorial
1010
properly installed on your system. The first time you run a script
1111
you will see a lot of output from tex and associated tools. The next
1212
time, the run may be silent, as a lot of the information is cached.

examples/ticks_and_spines/custom_ticker1.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
==============
55
66
The new ticker code was designed to explicitly support user customized
7-
ticking. The documentation
8-
http://matplotlib.org/api/ticker_api.html#module-matplotlib.ticker details this
7+
ticking. The documentation of :mod:`matplotlib.ticker` details this
98
process. That code defines a lot of preset tickers but was primarily
109
designed to be user extensible.
1110
1211
In this example a user defined function is used to format the ticks in
13-
millions of dollars on the y axis
12+
millions of dollars on the y axis.
1413
"""
1514
from matplotlib.ticker import FuncFormatter
1615
import matplotlib.pyplot as plt

tutorials/colors/colorbar_only.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
will be used. Then create the colorbar by calling
2323
:class:`~matplotlib.colorbar.ColorbarBase` and specify axis, colormap, norm
2424
and orientation as parameters. Here we create a basic continuous colorbar
25-
with ticks and labels. More information on the colorbar API can be found
26-
`here <https://matplotlib.org/api/colorbar_api.html>`_.
25+
with ticks and labels. For more information see the
26+
:mod:`~matplotlib.colorbar` API.
2727
"""
2828

2929
import matplotlib.pyplot as plt

tutorials/colors/colors.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
3939
All string specifications of color, other than "CN", are case-insensitive.
4040
41+
For more information on colors in matplotlib see
42+
43+
* the :doc:`/gallery/color/color_demo` example;
44+
* the `matplotlib.colors` API;
45+
* the :doc:`/gallery/color/named_colors` example.
46+
4147
"CN" color selection
4248
--------------------
4349

tutorials/introductory/customizing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
------------------
99
1010
The ``style`` package adds support for easy-to-switch plotting "styles" with
11-
the same parameters as a matplotlibrc_ file (which is read at startup to
12-
configure matplotlib).
11+
the same parameters as a
12+
:ref:`matplotlib rc <customizing-with-matplotlibrc-files>` file (which is read
13+
at startup to configure matplotlib).
1314
1415
There are a number of pre-defined styles provided by matplotlib. For
1516
example, there's a pre-defined style called "ggplot", which emulates the
@@ -183,6 +184,5 @@
183184
# .. literalinclude:: ../../../matplotlibrc.template
184185
#
185186
#
186-
# .. _matplotlibrc: http://matplotlib.org/users/customizing.html
187187
# .. _ggplot: http://ggplot2.org/
188188
# .. _R: https://www.r-project.org/

tutorials/introductory/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
settings. The alternative is the object-oriented interface, which is also
4343
very powerful, and generally more suitable for large application
4444
development. If you'd like to learn about the object-oriented
45-
interface, a great place to start is our `FAQ on usage
46-
<http://matplotlib.org/faq/usage_faq.html>`_. For now, let's get on
45+
interface, a great place to start is our :doc:`Usage guide
46+
</tutorials/introductory/usage>`. For now, let's get on
4747
with the imperative-style approach:
4848
"""
4949

tutorials/introductory/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# the current figure and plotting area, and the plotting
2424
# functions are directed to the current axes (please note that "axes" here
2525
# and in most places in the documentation refers to the *axes*
26-
# `part of a figure <http://matplotlib.org/faq/usage_faq.html#parts-of-a-figure>`__
26+
# :ref:`part of a figure <figure_parts>`
2727
# and not the strict mathematical term for more than one axis).
2828
#
2929
# .. note::

tutorials/text/pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
`tex.stackexchange.com <http://tex.stackexchange.com/questions/7953>`_.
189189
Another way would be to "rasterize" parts of the graph causing problems
190190
using either the ``rasterized=True`` keyword, or ``.set_rasterized(True)`` as per
191-
`this example <http://matplotlib.org/examples/misc/rasterization_demo.html>`_.
191+
:doc:`this example </gallery/misc/rasterization_demo>`.
192192
193193
* If you still need help, please see :ref:`reporting-problems`
194194

tutorials/text/text_intro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
2222
The user has a great deal of control over text properties (font size, font
2323
weight, text location and color, etc.) with sensible defaults set in
24-
the `rc file <http://matplotlib.org/users/customizing.html>`.
24+
the :doc:`rc file </tutorials/introductory/customizing>`.
2525
And significantly, for those interested in mathematical
2626
or scientific figures, matplotlib implements a large number of TeX
27-
math symbols and commands, supporting :ref:`mathematical expressions
28-
<sphx_glr_tutorials_text_mathtext.py>` anywhere in your figure.
27+
math symbols and commands, supporting :doc:`mathematical expressions
28+
</tutorials/text/mathtext>` anywhere in your figure.
2929
3030
3131
Basic text commands

0 commit comments

Comments
 (0)
0