0

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.xaxis.set_ticks(np.arange(626.720, 626.727, 0.001)), but the axes is all crammed on the left hand side.

Thanks. enter image description here

ROBOTPWNS
  • 4,299
  • 6
  • 23
  • 36

1 Answers1

1
x_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False)
x_formatter.set_scientific(False)
ax.xaxis.set_major_formatter(x_formatter)
runDOSrun
  • 10,359
  • 7
  • 47
  • 57