File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ***********
2+ mplot3d API
3+ ***********
4+
5+ :mod: `mpl_toolkits.mplot3d.axes3d `
6+ ==================================
7+
8+ .. automodule :: mpl_toolkits.mplot3d.axes3d
9+ :members:
10+ :exclude-members: contour3D, contourf3D, plot3D, scatter3D
11+ :show-inheritance:
12+
13+ :mod: `mpl_toolkits.mplot3d.art3d `
14+ =================================
15+
16+ .. automodule :: mpl_toolkits.mplot3d.art3d
17+ :members:
18+ :show-inheritance:
19+
20+ :mod: `mpl_toolkits.mplot3d.proj3d `
21+ ==================================
22+
23+ .. automodule :: mpl_toolkits.mplot3d.proj3d
24+ :members:
25+ :show-inheritance:
Original file line number Diff line number Diff line change 1+ .. _toolkit_mplot3d-index :
2+ .. currentmodule :: mpl_toolkits.mplot3d
3+
4+ *******
5+ mplot3d
6+ *******
7+
8+ Matplotlib mplot3d toolkit
9+ ==========================
10+ The mplot3d toolkit adds simple 3d plotting capabilities to matplotlib by
11+ supplying an axis object that can create a 2d projection of a 3d scene.
12+ In the end it produces a list of 2d lines and patches that are drawn by the
13+ normal matplotlib code. Therefore the resulting graph will have the same look
14+ and feel as regular 2d plots.
15+
16+ Interactive backends also provide the ability to rotate and zoom the 3d scene.
17+
18+ .. toctree ::
19+ :maxdepth: 2
20+
21+ tutorial.rst
22+ api.rst
23+
Original file line number Diff line number Diff line change 1+ .. _toolkit_mplot3d-tutorial :
2+ .. currentmodule :: mpl_toolkits.mplot3d
3+
4+ ****************
5+ mplot3d tutorial
6+ ****************
7+
8+ Getting started
9+ ===============
10+ Create a new :class: `matplotlib.figure.Figure ` and an
11+ :class: `~mpl_toolkits.mplot3d.Axes3D ` object in it::
12+
13+ import pylab
14+ fig = pylab.figure()
15+ from mpl_toolkits.mplot3d import Axes3D
16+ ax = Axes3D(fig)
17+
18+ Line plots
19+ ====================
20+ .. automethod :: Axes3D.plot
21+
22+ .. plot :: mpl_examples/mplot3d/lines3d_demo.py
23+
24+ Scatter plots
25+ =============
26+ .. automethod :: Axes3D.scatter
27+
28+ .. plot :: mpl_examples/mplot3d/scatter3d_demo.py
29+
30+ Wireframe plots
31+ ===============
32+ .. automethod :: Axes3D.plot_wireframe
33+
34+ .. plot :: mpl_examples/mplot3d/wire3d_demo.py
35+
36+ Surface plots
37+ =============
38+ .. automethod :: Axes3D.plot_surface
39+
40+ .. plot :: mpl_examples/mplot3d/surface3d_demo.py
41+
42+ Contour plots
43+ =============
44+ .. automethod :: Axes3D.contour
45+
46+ .. plot :: mpl_examples/mplot3d/contour3d_demo.py
47+
48+ Filled contour plots
49+ ====================
50+ .. automethod :: Axes3D.contourf
51+
52+ .. plot :: mpl_examples/mplot3d/contourf3d_demo.py
53+
54+ Polygon plots
55+ ====================
56+ .. automethod :: add_collection3d
57+
58+ .. plot :: mpl_examples/mplot3d/polys3d_demo.py
59+
60+ Bar plots
61+ ====================
62+ .. automethod :: Axes3D.bar
63+
64+ .. plot :: mpl_examples/mplot3d/bars3d_demo.py
65+
66+ 2D plots in 3D
67+ ====================
68+ .. plot :: mpl_examples/mplot3d/2dcollections3d_demo.py
69+
70+ Text
71+ ====================
72+ .. automethod :: Axes3D.text
73+
74+ .. plot :: mpl_examples/mplot3d/text3d_demo.py
75+
You can’t perform that action at this time.
0 commit comments