Skip to content

Commit d72aff3

Browse files
committed
Fix old api references
1 parent c10b2e0 commit d72aff3

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

doc/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def _check_deps():
9696
}
9797

9898
explicit_order_folders = [
99-
'../examples/api',
10099
'../examples/pyplots',
101100
'../examples/subplots_axes_and_figures',
102101
'../examples/color',

doc/devel/add_new_projection.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Once the class is defined, it must be registered with matplotlib so
6262
that the user can select it.
6363

6464
A full-fledged and heavily annotated example is in
65-
:file:`examples/api/custom_scale_example.py`. There are also some classes
65+
:file:`examples/scales/custom_scale.py`. There are also some classes
6666
in :mod:`matplotlib.scale` that may be used as starting points.
6767

6868

@@ -123,7 +123,7 @@ Once the projection axes is defined, it can be used in one of two ways:
123123

124124

125125
A full-fledged and heavily annotated example is in
126-
:file:`examples/api/custom_projection_example.py`. The polar plot
126+
:file:`examples/scales/custom_projection.py`. The polar plot
127127
functionality in :mod:`matplotlib.projections.polar` may also be of
128128
interest.
129129

doc/devel/documenting_mpl.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ Adding figures
566566
As above (see :ref:`rst-figures-and-includes`), figures in the examples gallery
567567
can be referenced with a `:plot:` directive pointing to the python script that
568568
created the figure. For instance the `~.Axes.legend` docstring references
569-
the file :file:`examples/api/legend.py`:
569+
the file :file:`examples/text_labels_and_annotations/legend.py`:
570570

571571
.. code-block:: python
572572
@@ -579,9 +579,9 @@ the file :file:`examples/api/legend.py`:
579579
.. plot:: gallery/api/legend.py
580580
"""
581581
582-
Note that ``examples/api/legend.py`` has been mapped to
583-
``gallery/api/legend.py``, a redirection that may be fixed in future
584-
re-organization of the docs.
582+
Note that ``examples/text_labels_and_annotations/legend.py`` has been mapped to
583+
``gallery/text_labels_and_annotations/legend.py``, a redirection that may
584+
be fixed in future re-organization of the docs.
585585

586586
Plots can also be directly placed inside docstrings. Details are in
587587
:doc:`/devel/plot_directive`. A short example is:

doc/users/prev_whats_new/changelog.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,8 @@ the `API changes <../../api/api_changes.html>`_.
17821782
return bitmap arrays or write pngs to make it easier to use
17831783
mathtext outside the context of an mpl figure. modified
17841784
the mathpng sphinxext to use the mathtext png save
1785-
functionality - see examples/api/mathtext_asarray.py - JDH
1785+
functionality - see
1786+
examples/text_labels_and_annotations/mathtext_asarray.py - JDH
17861787

17871788
2008-06-11 Use matplotlib.mathtext to render math expressions in
17881789
online docs - MGD

examples/user_interfaces/README.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ following the embedding_in_SOMEGUI.py examples here. Currently
88
matplotlib supports wxpython, pygtk, tkinter and pyqt4/5.
99

1010
When embedding Matplotlib in a GUI, you must use the Matplotlib API
11-
directly rather than the pylab/pyplot proceedural interface, so take a
12-
look at the examples/api directory for some example code working with
13-
the API.
11+
directly rather than the pylab/pyplot proceedural interface.

lib/matplotlib/axes/_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def legend(self, *args, **kwargs):
368368
Examples
369369
--------
370370
371-
.. plot:: gallery/api/legend.py
371+
.. plot:: gallery/text_labels_and_annotations/legend.py
372372
373373
"""
374374
handles, labels, extra_args, kwargs = mlegend._parse_legend_args(

lib/matplotlib/pyplot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ def twinx(ax=None):
11841184
11851185
.. seealso::
11861186
1187-
:file:`examples/api_examples/two_scales.py`
1187+
:file:`examples/subplots_axes_and_figures/two_scales.py`
11881188
For an example
11891189
"""
11901190
if ax is None:

0 commit comments

Comments
 (0)