MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / invert_zaxis

Method invert_zaxis

lib/mpl_toolkits/mplot3d/axes3d.py:2111–2127  ·  view source on GitHub ↗

[*Discouraged*] Invert the z-axis. .. admonition:: Discouraged The use of this method is discouraged. Use `.Axes3D.set_zinverted` instead. See Also -------- get_zinverted get_zlim, set_zlim get_zbound, set_zbound

(self)

Source from the content-addressed store, hash-verified

2109 # data limits, ticks, tick labels, and formatting
2110
2111 def invert_zaxis(self):
2112 """
2113 [*Discouraged*] Invert the z-axis.
2114
2115 .. admonition:: Discouraged
2116
2117 The use of this method is discouraged.
2118 Use `.Axes3D.set_zinverted` instead.
2119
2120 See Also
2121 --------
2122 get_zinverted
2123 get_zlim, set_zlim
2124 get_zbound, set_zbound
2125 """
2126 bottom, top = self.get_zlim()
2127 self.set_zlim(top, bottom, auto=None)
2128
2129 set_zinverted = _axis_method_wrapper("zaxis", "set_inverted")
2130 get_zinverted = _axis_method_wrapper("zaxis", "get_inverted")

Callers 1

test_inverted_zaxisFunction · 0.80

Calls 2

get_zlimMethod · 0.95
set_zlimMethod · 0.95

Tested by 1

test_inverted_zaxisFunction · 0.64