0

I would like to prevent the scientific notation in the red box of the picture below.

enter image description here

The code to generate the drawing is as follows.

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
ax.plot(range(2003, 2012, 1), range(20030000, 20120000, 10000))
ax.ticklabel_format(useOffset=False, style='plain')
plt.show()

The above code is copied and modified from the discussion here, where that author wanted to prevent the offset inside the figure, not in the toolbar.

pengdlzn
  • 33
  • 7

0 Answers0