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

Skip to content

Commit a853d23

Browse files
committed
DOC: Organize Axes3D methods into sections
1 parent 25d30c2 commit a853d23

File tree

6 files changed

+314
-7
lines changed

6 files changed

+314
-7
lines changed

doc/api/prev_api_changes/api_changes_3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Different exception types for undocumented options
106106
- Passing the undocumented ``xmin`` or ``xmax`` arguments to
107107
:meth:`~matplotlib.axes.Axes.set_xlim` would silently override the ``left``
108108
and ``right`` arguments. :meth:`~matplotlib.axes.Axes.set_ylim` and the
109-
3D equivalents (e.g. `~.Axes3D.set_zlim3d`) had a
109+
3D equivalents (e.g. `~.Axes3D.set_zlim`) had a
110110
corresponding problem.
111111
A ``TypeError`` will be raised if they would override the earlier
112112
limit arguments. In 3.0 these were kwargs were deprecated, but in 3.1

doc/api/toolkits/mplot3d.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ the toolbar pan and zoom buttons are not used.
2929

3030
mplot3d/faq.rst
3131
mplot3d/view_angles.rst
32+
mplot3d/axes3d.rst
3233

3334
.. note::
3435
`.pyplot` cannot be used to add content to 3D plots, because its function
@@ -51,11 +52,8 @@ the toolbar pan and zoom buttons are not used.
5152
Please report any functions that do not behave as expected as a bug.
5253
In addition, help and patches would be greatly appreciated!
5354

54-
.. autosummary::
55-
:toctree: ../_as_gen
56-
:template: autosummary.rst
5755

58-
axes3d.Axes3D
56+
`axes3d.Axes3D` (fig[, rect, elev, azim, roll, ...]) 3D Axes object.
5957

6058

6159
.. module:: mpl_toolkits.mplot3d.axis3d

doc/api/toolkits/mplot3d/axes3d.rst

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
mpl\_toolkits.mplot3d.axes3d.Axes3D
2+
===================================
3+
4+
5+
.. currentmodule:: mpl_toolkits.mplot3d.axes3d
6+
7+
8+
.. autoclass:: Axes3D
9+
:no-members:
10+
:no-undoc-members:
11+
:show-inheritance:
12+
13+
14+
.. currentmodule:: mpl_toolkits.mplot3d.axes3d.Axes3D
15+
16+
17+
Plotting
18+
--------
19+
20+
.. autosummary::
21+
:toctree: ../../_as_gen
22+
:template: autosummary.rst
23+
:nosignatures:
24+
25+
plot
26+
scatter
27+
bar
28+
bar3d
29+
30+
plot_surface
31+
plot_wireframe
32+
plot_trisurf
33+
34+
clabel
35+
contour
36+
tricontour
37+
contourf
38+
tricontourf
39+
40+
quiver
41+
voxels
42+
errorbar
43+
stem
44+
45+
46+
Text and annotations
47+
--------------------
48+
49+
.. autosummary::
50+
:toctree: ../../_as_gen
51+
:template: autosummary.rst
52+
:nosignatures:
53+
54+
text
55+
text2D
56+
57+
58+
Clearing
59+
--------
60+
61+
.. autosummary::
62+
:toctree: ../../_as_gen
63+
:template: autosummary.rst
64+
:nosignatures:
65+
66+
clear
67+
68+
69+
Appearance
70+
----------
71+
72+
.. autosummary::
73+
:toctree: ../../_as_gen
74+
:template: autosummary.rst
75+
:nosignatures:
76+
77+
set_axis_off
78+
set_axis_on
79+
grid
80+
get_frame_on
81+
set_frame_on
82+
83+
84+
Axis
85+
----
86+
87+
Axis limits and direction
88+
^^^^^^^^^^^^^^^^^^^^^^^^^
89+
90+
.. autosummary::
91+
:toctree: ../../_as_gen
92+
:template: autosummary.rst
93+
:nosignatures:
94+
95+
get_zaxis
96+
get_xlim
97+
get_ylim
98+
get_zlim
99+
set_zlim
100+
get_w_lims
101+
invert_zaxis
102+
zaxis_inverted
103+
get_zbound
104+
set_zbound
105+
106+
107+
Axis labels and title
108+
^^^^^^^^^^^^^^^^^^^^^
109+
110+
.. autosummary::
111+
:toctree: ../../_as_gen
112+
:template: autosummary.rst
113+
:nosignatures:
114+
115+
set_zlabel
116+
get_zlabel
117+
set_title
118+
119+
120+
Axis scales
121+
^^^^^^^^^^^
122+
123+
.. autosummary::
124+
:toctree: ../../_as_gen
125+
:template: autosummary.rst
126+
:nosignatures:
127+
128+
set_xscale
129+
set_yscale
130+
set_zscale
131+
get_zscale
132+
133+
134+
Autoscaling and margins
135+
^^^^^^^^^^^^^^^^^^^^^^^
136+
137+
.. autosummary::
138+
:toctree: ../../_as_gen
139+
:template: autosummary.rst
140+
:nosignatures:
141+
142+
set_zmargin
143+
margins
144+
autoscale
145+
autoscale_view
146+
set_autoscalez_on
147+
get_autoscalez_on
148+
auto_scale_xyz
149+
150+
151+
Aspect ratio
152+
^^^^^^^^^^^^
153+
154+
.. autosummary::
155+
:toctree: ../../_as_gen
156+
:template: autosummary.rst
157+
:nosignatures:
158+
159+
set_aspect
160+
set_box_aspect
161+
apply_aspect
162+
163+
164+
Ticks
165+
^^^^^
166+
167+
.. autosummary::
168+
:toctree: ../../_as_gen
169+
:template: autosummary.rst
170+
:nosignatures:
171+
172+
tick_params
173+
set_zticks
174+
get_zticks
175+
set_zticklabels
176+
get_zticklines
177+
get_zgridlines
178+
get_zminorticklabels
179+
get_zmajorticklabels
180+
zaxis_date
181+
182+
183+
Units
184+
-----
185+
186+
.. autosummary::
187+
:toctree: ../../_as_gen
188+
:template: autosummary.rst
189+
:nosignatures:
190+
191+
convert_zunits
192+
193+
194+
Adding artists
195+
--------------
196+
197+
.. autosummary::
198+
:toctree: ../../_as_gen
199+
:template: autosummary.rst
200+
:nosignatures:
201+
202+
add_collection3d
203+
204+
205+
Sharing
206+
-------
207+
208+
.. autosummary::
209+
:toctree: ../../_as_gen
210+
:template: autosummary.rst
211+
:nosignatures:
212+
213+
sharez
214+
215+
216+
Interactive
217+
-----------
218+
219+
.. autosummary::
220+
:toctree: ../../_as_gen
221+
:template: autosummary.rst
222+
:nosignatures:
223+
224+
can_zoom
225+
can_pan
226+
disable_mouse_rotation
227+
mouse_init
228+
drag_pan
229+
format_zdata
230+
format_coord
231+
232+
233+
Projection and perspective
234+
--------------------------
235+
236+
.. autosummary::
237+
:toctree: ../../_as_gen
238+
:template: autosummary.rst
239+
:nosignatures:
240+
241+
view_init
242+
set_proj_type
243+
get_proj
244+
set_top_view
245+
246+
247+
Drawing
248+
-------
249+
250+
.. autosummary::
251+
:toctree: ../../_as_gen
252+
:template: autosummary.rst
253+
:nosignatures:
254+
255+
draw
256+
get_tightbbox
257+
258+
259+
Aliases and deprecated methods
260+
------------------------------
261+
262+
.. autosummary::
263+
:toctree: ../../_as_gen
264+
:template: autosummary.rst
265+
:nosignatures:
266+
267+
set_zlim3d
268+
stem3D
269+
text3D
270+
tunit_cube
271+
tunit_edges
272+
unit_cube
273+
w_xaxis
274+
w_yaxis
275+
w_zaxis
276+
277+
278+
Other
279+
-----
280+
281+
.. autosummary::
282+
:toctree: ../../_as_gen
283+
:template: autosummary.rst
284+
:nosignatures:
285+
286+
get_axis_position
287+
add_contour_set
288+
add_contourf_set
289+
update_datalim
290+
291+
292+
.. currentmodule:: mpl_toolkits.mplot3d
293+
294+
Sample 3D data
295+
--------------
296+
297+
.. autosummary::
298+
:toctree: ../../_as_gen
299+
:template: autosummary.rst
300+
:nosignatures:
301+
302+
axes3d.get_test_data
303+
304+
305+
.. minigallery:: mpl_toolkits.mplot3d.axes3d.Axes3D
306+
:add-heading:

doc/users/prev_whats_new/whats_new_3.4.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ Stem plots in 3D Axes
866866
---------------------
867867

868868
Stem plots are now supported on 3D Axes. Much like 2D stems,
869-
`~.axes3d.Axes3D.stem3D` supports plotting the stems in various orientations:
869+
`~.axes3d.Axes3D.stem` supports plotting the stems in various orientations:
870870

871871
.. plot::
872872

examples/mplot3d/stem3d_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# *linefmt*, *markerfmt*, and *basefmt* control basic format properties of the
2727
# plot. However, in contrast to `~.axes3d.Axes3D.plot` not all properties are
2828
# configurable via keyword arguments. For more advanced control adapt the line
29-
# objects returned by `.stem3D`.
29+
# objects returned by `~mpl_toolkits.mplot3d.axes3d.Axes3D.stem`.
3030

3131
fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
3232
markerline, stemlines, baseline = ax.stem(

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ def get_axis_position(self):
499499
return xhigh, yhigh, zhigh
500500

501501
def update_datalim(self, xys, **kwargs):
502+
"""
503+
Not implemented in `~mpl_toolkits.mplot3d.axes3d.Axes3D`.
504+
"""
502505
pass
503506

504507
get_autoscalez_on = _axis_method_wrapper("zaxis", "_get_autoscale_on")

0 commit comments

Comments
 (0)