Skip to content Skip to sidebar Skip to footer

How To Change Matplotlib Axes So That That It Does Not Display In Scientific Notation?

How to change matplotlib axes so that that it does not display in scientific notation? (i.e. displaying 626.70 ... 626.77 in this case) I tried changing the x ticks by doing ax.xax

Solution 1:

x_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False)
x_formatter.set_scientific(False)
ax.xaxis.set_major_formatter(x_formatter)

Post a Comment for "How To Change Matplotlib Axes So That That It Does Not Display In Scientific Notation?"