Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7edaf8

Browse filesBrowse files
get_zaxis method for 3d axes
1 parent 6665bc7 commit c7edaf8
Copy full SHA for c7edaf8

File tree

Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ def _init_axis(self):
205205
for ax in self.xaxis, self.yaxis, self.zaxis:
206206
ax.init3d()
207207

208+
def get_zaxis(self):
209+
'''Return the `ZAxis<~.axis3d.Axis>` instance.'''
210+
return self.w_zaxis
211+
208212
def get_children(self):
209213
return [self.zaxis] + super().get_children()
210214

@@ -2435,18 +2439,18 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
24352439
24362440
zsort : str, optional
24372441
The z-axis sorting scheme passed onto
2438-
:func:`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`
2442+
:class:`~.art3d.Poly3DCollection`
24392443
24402444
shade : bool, optional (default = True)
24412445
When true, this shades the dark sides of the bars (relative
24422446
to the plot's source of light).
24432447
2444-
Any additional keyword arguments are passed onto
2445-
:func:`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`
2448+
**kwargs : Any additional keyword arguments are passed onto
2449+
:class:`~.art3d.Poly3DCollection`.
24462450
24472451
Returns
24482452
-------
2449-
collection : Poly3DCollection
2453+
collection : `~.art3d.Poly3DCollection`
24502454
A collection of three dimensional polygons representing
24512455
the bars.
24522456
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.