There is a new API that makes this even simpler.
plt.gca().invert_xaxis()
and/or
plt.gca().invert_yaxis()
More Related Contents:
- How to have clusters of stacked bars with python (Pandas)
- Stacked Bar Chart with Centered Labels
- Color by Column Values in Matplotlib
- Improve subplot size/spacing with many subplots in matplotlib
- Seaborn Barplot – Displaying Values
- Plotting grouped data in same plot using Pandas
- How to add value labels on a bar chart
- How to add hovering annotations to a plot
- Horizontal stacked bar plot and add labels to each section
- How to draw vertical lines on a given plot
- How to have clusters of stacked bars
- Seaborn showing scientific notation in heatmap for 3-digit numbers
- multi index plotting
- How to save a Seaborn plot into a file
- How to remove or hide x-axis labels from a seaborn / matplotlib plot
- Plotting time-series data with seaborn
- How to deal with NaN values when plotting a boxplot
- How to create a grouped bar plot
- Seaborn Bar Plot Ordering
- Using pandas crosstab to create a bar plot
- How to annotate a seaborn barplot with the aggregated value
- Discrete legend in seaborn heatmap plot
- seaborn heatmap using pandas dataframe
- pandas plot value counts barplot in descending manner [duplicate]
- Seaborn factor plot custom error bars instead of bootstrapping
- Plotting errors bars from dataframe using Seaborn FacetGrid
- Sorted bar charts with pandas/matplotlib or seaborn
- Color a scatter plot by Column Values
- countplot() with frequencies
- How does one insert statistical annotations (stars or p-values)