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

Skip to content

Commit 2465e60

Browse files
authored
Merge pull request #11312 from anntzer/rerefs
Replace :ref:`sphx_glr_...` by :doc:`/...`.
2 parents 0334c04 + 844b28c commit 2465e60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+150
-159
lines changed

doc/api/api_changes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ New dependency
3030

3131
`kiwisolver <https://github.com/nucleic/kiwi>`__ is now a required
3232
dependency to support the new constrained_layout, see
33-
:ref:`sphx_glr_tutorials_intermediate_constrainedlayout_guide.py` for
33+
:doc:`/tutorials/intermediate/constrainedlayout_guide` for
3434
more details.
3535

3636

@@ -1603,7 +1603,7 @@ original location:
16031603
* The legend handler interface has changed from a callable, to any object
16041604
which implements the ``legend_artists`` method (a deprecation phase will
16051605
see this interface be maintained for v1.4). See
1606-
:ref:`sphx_glr_tutorials_intermediate_legend_guide.py` for further details. Further legend changes
1606+
:doc:`/tutorials/intermediate/legend_guide` for further details. Further legend changes
16071607
include:
16081608

16091609
* :func:`matplotlib.axes.Axes._get_legend_handles` now returns a generator

doc/api/pyplot_summary.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Pyplot API
88
The :mod:`matplotlib.pyplot` module contains functions that allow you to generate
99
many kinds of plots quickly. For examples that showcase the use
1010
of the :mod:`matplotlib.pyplot` module, see the
11-
:ref:`sphx_glr_tutorials_introductory_pyplot.py`
11+
:doc:`/tutorials/introductory/pyplot`
1212
or the :ref:`pyplots_examples`. We also recommend that you look into
1313
the object-oriented approach to plotting, described below.
1414

@@ -38,6 +38,6 @@ There are many colormaps you can use to map data onto color values.
3838
Below we list several ways in which color can be utilized in Matplotlib.
3939

4040
For a more in-depth look at colormaps, see the
41-
:ref:`sphx_glr_tutorials_colors_colormaps.py` tutorial.
41+
:doc:`/tutorials/colors/colormaps` tutorial.
4242

4343
.. autofunction:: colormaps

doc/api/toolkits/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mplot3d
2121
plotting (scatter, surf, line, mesh) tools. Not the fastest or most feature
2222
complete 3D library out there, but it ships with Matplotlib and thus may be a
2323
lighter weight solution for some use cases. Check out the
24-
:ref:`mplot3d tutorial <sphx_glr_tutorials_toolkits_mplot3d.py>` for more
24+
:doc:`mplot3d tutorial </tutorials/toolkits/mplot3d>` for more
2525
information.
2626

2727
.. figure:: ../../gallery/mplot3d/images/sphx_glr_contourf3d_2_001.png

doc/api/toolkits/mplot3d/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The mplot3d toolkit adds simple 3D plotting capabilities to matplotlib by
1111
supplying an axes object that can create a 2D projection of a 3D scene.
1212
The resulting graph will have the same look and feel as regular 2D plots.
1313

14-
See the :ref:`mplot3d tutorial <sphx_glr_tutorials_toolkits_mplot3d.py>` for
14+
See the :doc:`mplot3d tutorial </tutorials/toolkits/mplot3d>` for
1515
more information on how to use this toolkit.
1616

1717
.. image:: /_static/demo_mplot3d.png

doc/devel/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Developing a new backend
479479
------------------------
480480

481481
If you are working on a custom backend, the *backend* setting in
482-
:file:`matplotlibrc` (:ref:`sphx_glr_tutorials_introductory_customizing.py`) supports an
482+
:file:`matplotlibrc` (:doc:`/tutorials/introductory/customizing`) supports an
483483
external backend via the ``module`` directive. If
484484
:file:`my_backend.py` is a Matplotlib backend in your
485485
:envvar:`PYTHONPATH`, you can set it on one of several ways

doc/faq/howto_faq.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If you only want to use the `pandas` converter for `datetime64` values ::
4343
Find all objects in a figure of a certain type
4444
----------------------------------------------
4545

46-
Every Matplotlib artist (see :ref:`sphx_glr_tutorials_intermediate_artists.py`) has a method
46+
Every Matplotlib artist (see :doc:`/tutorials/intermediate/artists`) has a method
4747
called :meth:`~matplotlib.artist.Artist.findobj` that can be used to
4848
recursively search the artist for any artists it may contain that meet
4949
some criteria (e.g., match all :class:`~matplotlib.lines.Line2D`
@@ -159,7 +159,7 @@ labels::
159159
ax = fig.add_subplot(111)
160160

161161
You can control the defaults for these parameters in your
162-
:file:`matplotlibrc` file; see :ref:`sphx_glr_tutorials_introductory_customizing.py`. For
162+
:file:`matplotlibrc` file; see :doc:`/tutorials/introductory/customizing`. For
163163
example, to make the above setting permanent, you would set::
164164

165165
figure.subplot.bottom : 0.2 # the bottom of the subplots of the figure
@@ -190,7 +190,7 @@ specify the location explicitly::
190190
ax = fig.add_axes([left, bottom, width, height])
191191

192192
where all values are in fractional (0 to 1) coordinates. See
193-
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_demo.py` for an example of placing axes manually.
193+
:doc:`/gallery/subplots_axes_and_figures/axes_demo` for an example of placing axes manually.
194194

195195
.. _howto-auto-adjust:
196196

@@ -200,7 +200,7 @@ Automatically make room for tick labels
200200
.. note::
201201
This is now easier to handle than ever before.
202202
Calling :func:`~matplotlib.pyplot.tight_layout` can fix many common
203-
layout issues. See the :ref:`sphx_glr_tutorials_intermediate_tight_layout_guide.py`.
203+
layout issues. See the :doc:`/tutorials/intermediate/tight_layout_guide`.
204204

205205
The information below is kept here in case it is useful for other
206206
purposes.
@@ -352,7 +352,7 @@ and patches, respectively::
352352

353353
.. only:: html
354354

355-
See :ref:`sphx_glr_gallery_misc_zorder_demo.py` for a complete example.
355+
See :doc:`/gallery/misc/zorder_demo` for a complete example.
356356

357357
You can also use the Axes property
358358
:meth:`~matplotlib.axes.Axes.set_axisbelow` to control whether the grid
@@ -371,7 +371,7 @@ some ratio which controls the ratio::
371371

372372
.. only:: html
373373

374-
See :ref:`sphx_glr_gallery_subplots_axes_and_figures_axis_equal_demo.py` for a
374+
See :doc:`/gallery/subplots_axes_and_figures/axis_equal_demo` for a
375375
complete example.
376376

377377
.. _howto-twoscale:
@@ -415,7 +415,7 @@ locators as desired because the two axes are independent.
415415

416416
.. only:: html
417417

418-
See :ref:`sphx_glr_gallery_api_two_scales.py` for a complete example
418+
See :doc:`/gallery/api/two_scales` for a complete example
419419

420420
.. _howto-batch:
421421

@@ -661,7 +661,7 @@ For more on configuring your backend, see
661661

662662
Alternatively, you can avoid pylab/pyplot altogether, which will give
663663
you a little more control, by calling the API directly as shown in
664-
:ref:`sphx_glr_gallery_api_agg_oo_sgskip.py`.
664+
:doc:`/gallery/api/agg_oo_sgskip`.
665665

666666
You can either generate hardcopy on the filesystem by calling savefig::
667667

doc/faq/installing_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ example::
2626

2727
This will give you additional information about which backends matplotlib is
2828
loading, version information, and more. At this point you might want to make
29-
sure you understand matplotlib's :ref:`configuration <sphx_glr_tutorials_introductory_customizing.py>`
29+
sure you understand matplotlib's :doc:`configuration </tutorials/introductory/customizing>`
3030
process, governed by the :file:`matplotlibrc` configuration file which contains
3131
instructions within and the concept of the matplotlib backend.
3232

doc/faq/troubleshooting_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ provide the following information in your e-mail to the `mailing list
104104
`Enthought Canopy <https://www.enthought.com/products/canopy/>`_).
105105

106106
* Any customizations to your ``matplotlibrc`` file (see
107-
:ref:`sphx_glr_tutorials_introductory_customizing.py`).
107+
:doc:`/tutorials/introductory/customizing`).
108108

109109
* If the problem is reproducible, please try to provide a *minimal*, standalone
110110
Python script that demonstrates the problem. This is *the* critical step.

doc/users/dflt_style_changes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ are only specified via hex values. To access these colors outside of
9696
the property cycling the notation for colors ``'CN'``, where ``N``
9797
takes values 0-9, was added to
9898
denote the first 10 colors in ``mpl.rcParams['axes.prop_cycle']`` See
99-
:ref:`sphx_glr_tutorials_colors_colors.py` for more details.
99+
:doc:`/tutorials/colors/colors` for more details.
100100

101101
To restore the old color cycle use
102102

@@ -145,7 +145,7 @@ watch Nathaniel Smith and Stéfan van der Walt's talk from SciPy2015.
145145
See `here for many more details <https://bids.github.io/colormap/>`__
146146
about the other alternatives and the tools used to create the color
147147
map. For details on all of the color maps available in matplotlib see
148-
:ref:`sphx_glr_tutorials_colors_colormaps.py`.
148+
:doc:`/tutorials/colors/colormaps`.
149149

150150
.. raw:: html
151151

doc/users/prev_whats_new/whats_new_0.98.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ psd amplitude scaling
7979

8080
Ryan May did a lot of work to rationalize the amplitude scaling of
8181
:func:`~matplotlib.pyplot.psd` and friends. See
82-
:ref:`sphx_glr_gallery_lines_bars_and_markers_psd_demo.py`.
82+
:doc:`/gallery/lines_bars_and_markers/psd_demo`.
8383
The changes should increase MATLAB
8484
compatibility and increase scaling options.
8585

0 commit comments

Comments
 (0)