I had exactly the same problem, and these lines fixed the problem:
from matplotlib.ticker import ScalarFormatter
y_formatter = ScalarFormatter(useOffset=False)
ax.yaxis.set_major_formatter(y_formatter)
More Related Contents:
- How to animate a scatter plot
- Break // in x axis of matplotlib [duplicate]
- Setting Different Bar color in matplotlib Python [duplicate]
- How to make two plots side-by-side using Python?
- Fill between two vertical lines in matplotlib [duplicate]
- How to plot multiple dataframes in subplots
- Fitting a Normal distribution to 1D data
- Matplotlib plot with variable line width
- Problem in combining bar plot and line plot (python)
- Seaborn: countplot() with frequencies
- Bar Chart: How to choose color if value is positive vs value is negative
- cx_Freeze converted GUI-app (tkinter) crashes after pressing plot button
- How to change the text color of font in legend?
- Parallel Coordinates plot in Matplotlib
- Using Matplotlib 3D axes, how to drag two axes at once
- Custom logarithmic axis scaling in matplotlib
- Plotting time in with Matplotlib
- trouble aligning ticks for matplotlib twinx axes
- Getting vertical gridlines to appear in line plot in matplotlib
- plotting a histogram on a Log scale with Matplotlib
- Understanding matplotlib: plt, figure, ax(arr)?
- Plotting a line over several graphs
- Matplotlib: Add colorbar to non-mappable object
- Changing width of bars in bar chart created using seaborn.factorplot
- AttributeError while adding colorbar in matplotlib
- How I can get cartesian coordinate system in matplotlib?
- Remove axis label offset by default
- Multiple datasets on the same scatter plot
- Interactive matplotlib figures in Google Colab
- Matplotlib Errorbar Caps Missing