Skip to content

Commit 5c32712

Browse files
authored
Merge pull request #11136 from dstansby/examplemove
DOC: Move remaining examples from api/
2 parents c928022 + a351d21 commit 5c32712

38 files changed

+26
-52
lines changed

doc/api/pyplot_summary.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ While it is easy to quickly generate plots with the
2828
we recommend using the object-oriented approach for more control
2929
and customization of your plots. See the methods in the
3030
:meth:`matplotlib.axes.Axes` class for many of the same plotting functions.
31-
For examples of the OO approach to Matplotlib, see the
32-
:ref:`API Examples<api_examples>`.
3331

3432
Colors in Matplotlib
3533
--------------------

doc/faq/howto_faq.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Finally, the multipage pdf object has to be closed::
137137
pp.close()
138138

139139
The same can be done using the pgf backend::
140-
140+
141141
from matplotlib.backends.backend_pgf import PdfPages
142142

143143

@@ -415,7 +415,8 @@ locators as desired because the two axes are independent.
415415

416416
.. only:: html
417417

418-
See :doc:`/gallery/api/two_scales` for a complete example
418+
See :doc:`/gallery/subplots_axes_and_figures/two_scales` for a
419+
complete example.
419420

420421
.. _howto-batch:
421422

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

662663
Alternatively, you can avoid pylab/pyplot altogether, which will give
663664
you a little more control, by calling the API directly as shown in
664-
:doc:`/gallery/api/agg_oo_sgskip`.
665+
:doc:`/gallery/misc/agg_oo_sgskip`.
665666

666667
You can either generate hardcopy on the filesystem by calling savefig::
667668

doc/users/prev_whats_new/whats_new_1.1.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ Sankey Diagrams
1717

1818
Kevin Davies has extended Yannick Copin's original Sankey example into a module
1919
(:mod:`~matplotlib.sankey`) and provided new examples
20-
(:doc:`/gallery/api/sankey_basics`, :doc:`/gallery/api/sankey_links`,
21-
:doc:`/gallery/api/sankey_rankine`).
20+
(:doc:`/gallery/specialty_plots/sankey_basics`,
21+
:doc:`/gallery/specialty_plots/sankey_links`,
22+
:doc:`/gallery/specialty_plots/sankey_rankine`).
2223

23-
.. figure:: ../../gallery/api/images/sphx_glr_sankey_rankine_001.png
24-
:target: ../../gallery/api/sankey_rankine.html
24+
.. figure:: ../../gallery/specialty_plots/images/sphx_glr_sankey_rankine_001.png
25+
:target: ../../gallery/specialty_plots/sankey_rankine.html
2526
:align: center
2627
:scale: 50
2728

doc/users/prev_whats_new/whats_new_1.4.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ matplotlib internals were cleaned up to support using such transforms in
160160
:class:`~matplotlib.Axes`. This transform is important for some plot types,
161161
specifically the Skew-T used in meteorology.
162162

163-
.. figure:: ../../gallery/api/images/sphx_glr_skewt_001.png
164-
:target: ../../gallery/api/skewt.html
163+
.. figure:: ../../gallery/specialty_plots/images/sphx_glr_skewt_001.png
164+
:target: ../../gallery/specialty_plots/skewt.html
165165
:align: center
166166
:scale: 50
167167

doc/users/prev_whats_new/whats_new_1.5.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ kwargs names is not ideal, but `Axes.fill_between` already has a
377377

378378
This is particularly useful for plotting pre-binned histograms.
379379

380-
.. figure:: ../../gallery/api/images/sphx_glr_filled_step_001.png
381-
:target: ../../gallery/api/filled_step.html
380+
.. figure:: ../../gallery/lines_bars_and_markers/images/sphx_glr_filled_step_001.png
381+
:target: ../../gallery/lines_bars_and_markers/filled_step.html
382382
:align: center
383383
:scale: 50
384384

examples/README

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Below is a brief description of the different directories found here:
1616
* animation - Dynamic plots, see the documentation at
1717
http://matplotlib.org/api/animation_api.html
1818

19-
* api - working with the Matplotlib API directly.
20-
2119
* axes_grid1 - Examples related to the axes_grid1 toolkit.
2220

2321
* axisartist - Examples related to the axisartist toolkit.

examples/api/README.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/api/watermark_image.py renamed to examples/images_contours_and_fields/watermark_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Watermark image
44
===============
55
6-
Use a PNG file as a watermark
6+
Using a PNG file as a watermark.
77
"""
88
import numpy as np
99
import matplotlib.cbook as cbook

0 commit comments

Comments
 (0)