What should be the syntax if we want to flip coordinates of bar plot (variables on y and values in x )?
Answers
Answered by
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