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 361b8bc

Browse filesBrowse files
committed
In mplot3d, fix a doc typo and autogen zaxis_inverted.
1 parent fbfa28d commit 361b8bc
Copy full SHA for 361b8bc

File tree

Expand file treeCollapse file tree

1 file changed

+2
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-7
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def sharez(self, other):
975975
"""
976976
Share the z-axis with *other*.
977977
978-
This is equivalent to passing ``sharex=other`` when constructing the
978+
This is equivalent to passing ``sharez=other`` when constructing the
979979
Axes, and cannot be used if the z-axis is already being shared with
980980
another Axes.
981981
"""
@@ -1402,12 +1402,7 @@ def invert_zaxis(self):
14021402
bottom, top = self.get_zlim()
14031403
self.set_zlim(top, bottom, auto=None)
14041404

1405-
def zaxis_inverted(self):
1406-
"""
1407-
Returns True if the z-axis is inverted.
1408-
"""
1409-
bottom, top = self.get_zlim()
1410-
return top < bottom
1405+
zaxis_inverted = _axis_method_wrapper("zaxis", "get_inverted")
14111406

14121407
def get_zbound(self):
14131408
"""

0 commit comments

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