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

Method invert_yaxis

lib/matplotlib/axes/_base.py:4041–4056  ·  view source on GitHub ↗

[*Discouraged*] Invert the y-axis. .. admonition:: Discouraged The use of this method is discouraged. Use `.Axes.set_yinverted` instead. See Also -------- get_yinverted get_ylim, set_ylim get_ybound, set_ybound

(self)

Source from the content-addressed store, hash-verified

4039 return self.yaxis.set_label_text(ylabel, fontdict, **kwargs)
4040
4041 def invert_yaxis(self):
4042 """
4043 [*Discouraged*] Invert the y-axis.
4044
4045 .. admonition:: Discouraged
4046
4047 The use of this method is discouraged.
4048 Use `.Axes.set_yinverted` instead.
4049
4050 See Also
4051 --------
4052 get_yinverted
4053 get_ylim, set_ylim
4054 get_ybound, set_ybound
4055 """
4056 self.yaxis.set_inverted(not self.yaxis.get_inverted())
4057
4058 set_yinverted = _axis_method_wrapper("yaxis", "set_inverted")
4059 get_yinverted = _axis_method_wrapper("yaxis", "get_inverted")

Calls 2

set_invertedMethod · 0.80
get_invertedMethod · 0.80