[*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)
| 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") |