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)
Related Contents:
- How to force integer tick labels
- Change grid interval and specify tick labels
- Changing the “tick frequency” on x or y axis in matplotlib
- Editing the date formatting of x-axis tick labels
- Changing the tick frequency on the x or y axis
- Plot logarithmic axes
- Date ticks and rotation [duplicate]
- Create own colormap using matplotlib and plot color scale
- Secondary axis with twinx(): how to add to legend?
- Plot a horizontal line using matplotlib
- Editing the date formatting of x-axis tick labels in matplotlib
- Remove xticks in a matplotlib plot?
- How to add hovering annotations to a plot
- Heatmap in matplotlib with pcolor?
- How to plot a gradient color line in matplotlib?
- Why does pyplot.contour() require Z to be a 2D array?
- matplotlib scatterplot with legend
- Plot a histogram such that bar heights sum to 1 (probability)
- How to make custom legend in matplotlib
- Interactive pixel information of an image in Python?
- How to set the default color cycle for all subplots with matplotlib?
- matplotlib: how to draw a rectangle on image
- How to set xlim and ylim for a subplot in matplotlib [duplicate]
- Reset color cycle in Matplotlib
- How can I rotate xticklabels in matplotlib so that the spacing between each xticklabel is equal?
- How to set ticks on Fixed Position , matplotlib
- How to invert the x or y axis
- How can I attach a pyplot function to a figure instance?
- How can I make a barplot and a lineplot in the same seaborn plot with different Y axes nicely?
- Python, Error while installing matplotlib
- Reverse colormap in matplotlib
- How to export plots from matplotlib with transparent background?
- Matplotlib showing x-tick labels overlapping
- Python: How to show matplotlib in flask [duplicate]
- How to draw a rectangle over a specific region in a matplotlib graph
- struggling in calling multiple interactive functions for a graph using ipywidgets
- add colorbar to a sequence of line plots
- Matplotlib: rotating a patch
- How to save a figure remotely with pylab? [duplicate]
- Remove seaborn lineplot legend title
- Legend only shows one label when plotting with pandas
- Plot the x-axis as a date
- Many plots in less time – python
- Spacing between some subplots but not all
- Adding legend based on existing color series
- Creating intersecting images with imshow or other function
- matplotlib: 2 different legends on same graph
- Axes from plt.subplots() is a “numpy.ndarray” object and has no attribute “plot”
- How to get a list of all the fonts currently available for Matplotlib?
- Python scatter plot. Size and style of the marker