4
4
****************
5
5
mplot3d tutorial
6
6
****************
7
+ .. contents ::
8
+ :backlinks: none
9
+
10
+ .. _mplot3d_getting_started :
7
11
8
12
Getting started
9
13
===============
@@ -26,24 +30,32 @@ add a new axes to it of type :class:`~mpl_toolkits.mplot3d.Axes3D`::
26
30
``ax = fig.add_subplot(111, projection='3d') ``
27
31
to ``ax = Axes3D(fig) ``.
28
32
33
+ .. _plot3d :
34
+
29
35
Line plots
30
36
====================
31
37
.. automethod :: Axes3D.plot
32
38
33
39
.. plot :: mpl_examples/mplot3d/lines3d_demo.py
34
40
41
+ .. _scatter3d :
42
+
35
43
Scatter plots
36
44
=============
37
45
.. automethod :: Axes3D.scatter
38
46
39
47
.. plot :: mpl_examples/mplot3d/scatter3d_demo.py
40
48
49
+ .. _wireframe :
50
+
41
51
Wireframe plots
42
52
===============
43
53
.. automethod :: Axes3D.plot_wireframe
44
54
45
55
.. plot :: mpl_examples/mplot3d/wire3d_demo.py
46
56
57
+ .. _surface :
58
+
47
59
Surface plots
48
60
=============
49
61
.. automethod :: Axes3D.plot_surface
@@ -52,6 +64,8 @@ Surface plots
52
64
.. plot :: mpl_examples/mplot3d/surface3d_demo2.py
53
65
.. plot :: mpl_examples/mplot3d/surface3d_demo3.py
54
66
67
+ .. _contour3d :
68
+
55
69
Contour plots
56
70
=============
57
71
.. automethod :: Axes3D.contour
@@ -60,43 +74,60 @@ Contour plots
60
74
.. plot :: mpl_examples/mplot3d/contour3d_demo2.py
61
75
.. plot :: mpl_examples/mplot3d/contour3d_demo3.py
62
76
77
+ .. _contourf3d :
78
+
63
79
Filled contour plots
64
80
====================
65
81
.. automethod :: Axes3D.contourf
66
82
67
83
.. plot :: mpl_examples/mplot3d/contourf3d_demo.py
68
84
.. plot :: mpl_examples/mplot3d/contourf3d_demo2.py
69
85
86
+ .. versionadded :: 1.0.1
87
+ The feature demoed in the second contourf3d example was enabled as a
88
+ result of a bugfix for version 1.0.1.
89
+
90
+ .. _polygon3d :
91
+
70
92
Polygon plots
71
93
====================
72
94
.. automethod :: Axes3D.add_collection3d
73
95
74
96
.. plot :: mpl_examples/mplot3d/polys3d_demo.py
75
97
98
+ .. _bar3d :
99
+
76
100
Bar plots
77
101
====================
78
102
.. automethod :: Axes3D.bar
79
103
80
104
.. plot :: mpl_examples/mplot3d/bars3d_demo.py
81
105
106
+ .. _2dcollections3d :
107
+
82
108
2D plots in 3D
83
109
====================
84
110
.. plot :: mpl_examples/mplot3d/2dcollections3d_demo.py
85
111
112
+ .. _text3d :
113
+
86
114
Text
87
115
====================
88
116
.. automethod :: Axes3D.text
89
117
90
118
.. plot :: mpl_examples/mplot3d/text3d_demo.py
91
119
120
+ .. _3dsubplots :
121
+
92
122
Subplotting
93
123
====================
94
124
Having multiple 3d plots in a single figure is the same
95
- as it is for 2d plots. And you can mix 2d and 3d plots
96
- into the same figure.
125
+ as it is for 2d plots. Also, you can have both 2d and 3d plots
126
+ in the same figure.
97
127
98
128
.. versionadded :: 1.0.0
99
- This feature was added in v1.0.0. Earlier version can not do this.
129
+ Subplotting 3d plots was added in v1.0.0. Earlier version can not
130
+ do this.
100
131
101
132
.. plot :: mpl_examples/mplot3d/subplot3d_demo.py
102
133
.. plot :: mpl_examples/mplot3d/mixed_subplots_demo.py
0 commit comments