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

Skip to content

Commit e4670d0

Browse files
authored
Merge pull request #20394 from anntzer/3ds
Remove separate section for support of 3d subplots.
2 parents 36dd5b6 + cf80d89 commit e4670d0

File tree

4 files changed

+13
-27
lines changed

4 files changed

+13
-27
lines changed

doc/users/prev_whats_new/whats_new_0.99.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Reinier Heeres has ported John Porter's mplot3d over to the new
2626
matplotlib transformations framework, and it is now available as a
2727
toolkit mpl_toolkits.mplot3d (which now comes standard with all mpl
2828
installs). See :ref:`mplot3d-examples-index` and
29-
:ref:`toolkit_mplot3d-tutorial`
29+
:doc:`/tutorials/toolkits/mplot3d`.
3030

3131
.. plot::
3232

doc/users/prev_whats_new/whats_new_1.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ as 2D plotting, Ben Root has made several improvements to the
138138
improved to bring the class towards feature-parity with regular
139139
Axes objects
140140

141-
* Documentation for :ref:`toolkit_mplot3d-tutorial` was significantly expanded
141+
* Documentation for :doc:`/tutorials/toolkits/mplot3d` was significantly expanded
142142

143143
* Axis labels and orientation improved
144144

tutorials/introductory/sample_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
Three-dimensional plotting
107107
==========================
108108
109-
The mplot3d toolkit (see :ref:`toolkit_mplot3d-tutorial` and
109+
The mplot3d toolkit (see :doc:`/tutorials/toolkits/mplot3d` and
110110
:ref:`mplot3d-examples-index`) has support for simple 3D graphs
111111
including surface, wireframe, scatter, and bar charts.
112112

tutorials/toolkits/mplot3d.py

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@
88
.. currentmodule:: mpl_toolkits.mplot3d
99
1010
.. contents::
11-
:backlinks: none
11+
:backlinks: none
1212
13-
.. _toolkit_mplot3d-tutorial:
14-
15-
Getting started
16-
---------------
1713
3D Axes (of class `.Axes3D`) are created by passing the ``projection="3d"``
1814
keyword argument to `.Figure.add_subplot`::
1915
2016
import matplotlib.pyplot as plt
2117
fig = plt.figure()
2218
ax = fig.add_subplot(projection='3d')
2319
20+
Multiple 3D subplots can be added on the same figure, as for 2D subplots.
21+
22+
.. figure:: ../../gallery/mplot3d/images/sphx_glr_subplot3d_001.png
23+
:target: ../../gallery/mplot3d/subplot3d.html
24+
:align: center
25+
:scale: 50
26+
2427
.. versionchanged:: 1.0.0
25-
Prior to Matplotlib 1.0.0, `.Axes3D` needed to be directly instantiated with
26-
``from mpl_toolkits.mplot3d import Axes3D; ax = Axes3D(fig)``.
28+
Prior to Matplotlib 1.0.0, only a single `.Axes3D` could be created per
29+
figure; it needed to be directly instantiated as ``ax = Axes3D(fig)``.
2730
2831
.. versionchanged:: 3.2.0
2932
Prior to Matplotlib 3.2.0, it was necessary to explicitly import the
@@ -166,21 +169,4 @@
166169
:target: ../../gallery/mplot3d/text3d.html
167170
:align: center
168171
:scale: 50
169-
170-
.. _3dsubplots:
171-
172-
Subplotting
173-
====================
174-
Having multiple 3D plots in a single figure is the same
175-
as it is for 2D plots. Also, you can have both 2D and 3D plots
176-
in the same figure.
177-
178-
.. versionadded:: 1.0.0
179-
Subplotting 3D plots was added in v1.0.0. Earlier version can not
180-
do this.
181-
182-
.. figure:: ../../gallery/mplot3d/images/sphx_glr_subplot3d_001.png
183-
:target: ../../gallery/mplot3d/subplot3d.html
184-
:align: center
185-
:scale: 50
186172
"""

0 commit comments

Comments
 (0)