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

Skip to content

Commit 1445af5

Browse files
authored
Merge pull request #21011 from meeseeksmachine/auto-backport-of-pr-21003-on-v3.5.x
Backport PR #21003 on branch v3.5.x (Deemphasize mpl_toolkits in API docs.)
2 parents 6c91b6d + 982f671 commit 1445af5

File tree

6 files changed

+29
-96
lines changed

6 files changed

+29
-96
lines changed

doc/api/index.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,6 @@ Alphabetical list of modules:
101101
widgets_api.rst
102102
_api_api.rst
103103
_enums_api.rst
104-
105-
Toolkits
106-
--------
107-
108-
:ref:`toolkits-index` are collections of application-specific functions that extend
109-
Matplotlib. The following toolkits are included:
110-
111-
.. toctree::
112-
:hidden:
113-
114-
toolkits/index.rst
115-
116-
.. toctree::
117-
:maxdepth: 1
118-
119104
toolkits/mplot3d.rst
120105
toolkits/axes_grid1.rst
121106
toolkits/axisartist.rst

doc/api/toolkits/index.rst

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

doc/api/toolkits/mplot3d.rst

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
.. _toolkit_mplot3d-api:
1+
.. _toolkit_mplot3d-index:
2+
.. currentmodule:: mpl_toolkits.mplot3d
3+
4+
************************
5+
``mpl_toolkits.mplot3d``
6+
************************
7+
8+
The mplot3d toolkit adds simple 3D plotting capabilities (scatter, surface,
9+
line, mesh, etc.) to Matplotlib by supplying an Axes object that can create
10+
a 2D projection of a 3D scene. The resulting graph will have the same look
11+
and feel as regular 2D plots. Not the fastest or most feature complete 3D
12+
library out there, but it ships with Matplotlib and thus may be a lighter
13+
weight solution for some use cases.
14+
15+
See the :doc:`mplot3d tutorial </tutorials/toolkits/mplot3d>` for
16+
more information.
17+
18+
.. image:: /_static/demo_mplot3d.png
19+
:align: center
20+
21+
The interactive backends also provide the ability to rotate and zoom the 3D
22+
scene. One can rotate the 3D scene by simply clicking-and-dragging the scene.
23+
Zooming is done by right-clicking the scene and dragging the mouse up and down
24+
(unlike 2D plots, the toolbar zoom button is not used).
25+
26+
.. toctree::
27+
:maxdepth: 2
228

3-
***********
4-
mplot3d API
5-
***********
29+
mplot3d/faq.rst
630

731
.. note::
832
`.pyplot` cannot be used to add content to 3D plots, because its function

doc/api/toolkits/mplot3d/index.rst

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

doc/devel/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ The correct target folder can be found using::
244244
python -c "import matplotlib.tests; print(matplotlib.tests.__file__.rsplit('/', 1)[0])"
245245

246246
An analogous copying of :file:`lib/mpl_toolkits/tests/baseline_images`
247-
is necessary for testing the :ref:`toolkits`.
247+
is necessary for testing ``mpl_toolkits``.
248248

249249
Run the tests
250250
^^^^^^^^^^^^^

doc/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Reference
3131
- :doc:`Axes API <api/axes_api>` for *most* plotting methods
3232
- :doc:`Figure API <api/figure_api>` for figure-level methods
3333

34-
- :doc:`Extra Toolkits <api/toolkits/index>`
35-
3634
How-tos
3735
=======
3836

0 commit comments

Comments
 (0)