There is a new API that makes this even simpler.
plt.gca().invert_xaxis()
and/or
plt.gca().invert_yaxis()
More Related Contents:
- Annotate bars with values on Pandas bar plots
- Is there a way to make a discontinuous axis in Matplotlib?
- How to change the font size on a matplotlib plot
- What’s the fastest way of checking if a point is inside a polygon in python
- plot different color for different categorical levels using matplotlib
- reducing number of plot ticks
- How to add percentages on top of bars in seaborn
- Adding a background image to a plot
- Non-ASCII characters in Matplotlib
- Matplotlib: How to plot images instead of points?
- How to plot data from multiple two column text files with legends in Matplotlib?
- Python pandas / matplotlib annotating labels above bar chart columns [duplicate]
- How to add group labels for bar charts
- Plotting dates on the x-axis
- How to remove axis, legends, and white padding
- Plotting a stacked Bar Chart
- How to set common axes labels for subplots
- ValueError: view limit minimum -35738.3640567 is less than 1 and is an invalid Matplotlib date value
- matplotlib savefig performance, saving multiple pngs within loop
- How to center labels in histogram plot
- Matplotlib just giving error messages
- Unable to “import matplotlib.pyplot as plt” in virtualenv
- Move spines in matplotlib 3d plot?
- Combine two Pyplot patches for legend
- Plotting a 3d cube, a sphere and a vector
- How do I align gridlines for two y-axis scales?
- Change tick frequency on X (time, not number) frequency
- Specifying the order of layers
- automatically position text box in plot
- How to plot a high resolution graph