There is a new API that makes this even simpler.
plt.gca().invert_xaxis()
and/or
plt.gca().invert_yaxis()
Related Contents:
- How to add hovering annotations in matplotlib
- Is there a way to make a discontinuous axis in Matplotlib?
- Dynamically updating plot in matplotlib
- Matplotlib scatterplot; color as a function of a third variable
- setting y-axis limit in matplotlib
- How to make IPython notebook matplotlib plot inline
- Plotting a 3d cube, a sphere and a vector in Matplotlib
- Saving interactive Matplotlib figures
- Plot a horizontal line on a given plot
- Format y axis as percent
- find length of sequences of identical values in a numpy array (run length encoding)
- Setting Different Bar color in matplotlib Python [duplicate]
- How to make a 4d plot with matplotlib using arbitrary data
- Matplotlib log scale tick label number formatting
- How to give a pandas/matplotlib bar graph custom colors
- How do I fit a sine curve to my data with pylab and numpy?
- prevent plot from showing in jupyter notebook
- matplotlib (mplot3d) – how to increase the size of an axis (stretch) in a 3D Plot?
- Python Matplotlib figure title overlaps axes label when using twiny
- Matplotlib: Plotting numerous disconnected line segments with different colors
- Matplotlib figure facecolor (background color)
- How do I align gridlines for two y-axis scales using Matplotlib?
- Python’s Matplotlib plotting in wrong order
- A logarithmic colorbar in matplotlib scatter plot
- Improve subplot size/spacing with many subplots
- how to use ‘extent’ in matplotlib.pyplot.imshow
- Fitting a Normal distribution to 1D data
- When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error?
- Plot correlation matrix using pandas
- How to draw a line with matplotlib?
- How to generate audio from a numpy array?
- Cleanest way to hide every nth tick label in matplotlib colorbar?
- Matplotlib: Adding an axes using the same arguments as a previous axes
- How to use custom png image marker with plot?
- How to change legend size with matplotlib.pyplot
- How to change fonts in matplotlib (python)?
- What does a 4-element tuple argument for ‘bbox_to_anchor’ mean in matplotlib?
- No outlines on bins of Matplotlib histograms or Seaborn distplots
- Pyplot: vertical gradient fill under curve?
- Matplotlib – Move X-Axis label downwards, but not X-Axis Ticks
- I want to plot changes in monthly values from dataset spanning over few years with matplot.pylib, pandas
- Show decimal places and scientific notation on the axis
- Parallel Coordinates plot in Matplotlib
- Keep plotting window open in Matplotlib
- Networkx: Overlapping edges when visualizing MultiGraph
- How to rotate x-axis tick labels in a pandas plot
- increase the linewidth of the legend lines in matplotlib
- How to scale Seaborn’s y-axis with a bar plot
- Color matplotlib bar chart based on value
- using mpatches.Patch for a custom legend