matplotlib.axes.Axes.invert_yaxis#

Axes.invert_yaxis()[source]#

[Discouraged] Invert the y-axis.

Discouraged

The use of this method is discouraged.UseAxes.set_yinverted instead.

Examples usingmatplotlib.axes.Axes.invert_yaxis#

Bar chart with labels

Bar chart with labels

Horizontal bar chart

Horizontal bar chart

Broken horizontal bars

Broken horizontal bars

Marker reference

Marker reference

Line, Poly and RegularPoly Collection

Line, Poly and RegularPoly Collection