barh matplotlib order code example Example: change order of barh matplotlib ax = df.plot.barh() # or df.plot(), or similar ax.invert_yaxis()