Try using matplotlib.pyplot.ticklabel_format
:
import matplotlib.pyplot as plt
...
plt.ticklabel_format(style="sci", axis="x", scilimits=(0,0))
This applies scientific notation (i.e. a x 10^b
) to your x-axis tickmarks
More Related Contents:
- Clustered Stacked Bar in Python Pandas [closed]
- prevent scientific notation in matplotlib.pyplot [duplicate]
- Save plot to image file instead of displaying it using Matplotlib
- Pandas: Adding new column to dataframe which is a copy of the index column
- How to change backends in matplotlib / Python
- How do I change the figure size with subplots?
- How do I set the figure title and axes labels font size in Matplotlib?
- How to fix overlapping annotations / text
- animated subplots using matplotlib
- What do all the distributions available in scipy.stats look like?
- How to dynamically update a plot in a loop in IPython notebook (within one cell)
- Setting aspect ratio of 3D plot
- Subheadings for categories within matplotlib custom legend
- Scatterplot with different size, marker, and color from pandas dataframe
- Changing marker style in scatter plot according to third variable
- How to do waffle charts in python? (square piechart)
- Matplotlib text dimensions
- Plot a bar using matplotlib using a dictionary
- Pycharm does not show plot
- Change values on matplotlib imshow() graph axis
- Python hide ticks but show tick labels
- Hierarchic pie/donut chart from Pandas DataFrame using bokeh or matplotlib
- why does my colorbar have lines in it?
- How to remove gaps between bars in Matplotlib bar chart
- Multiple figures in a single window
- matplotlib very slow. Is it normal?
- Is it possible to draw a boxplot given the percentile values instead of the original inputs?
- How does one insert statistical annotations (stars or p-values)
- color of a 3D surface plot in python
- matplotlib: render into buffer / access pixel data