Computer Science, asked by phanianindita7880, 11 months ago

What should be the syntax if we want to flip coordinates of bar plot (variables on y and values in x )?

Answers

Answered by sharmaravikumar78
4

Answer:

plt.gca().invert_yaxis()

ax.invert_yaxis()

Explanation:

For Matplotlib:

use plt.gca().invert_yaxis()

For dataframes use:

 ax.invert_yaxis()  

Similar questions