0

How to set non-scientific format for labels on axes? I tried:

plt.ticklabel_format(style='plain', axis='x', scilimits=(0, 0), useLocale='True')
plt.ticklabel_format(style='plain', axis='y', scilimits=(0, 0), useLocale='True')

However, I get result as in the picture. Thank you enter image description here

match
  • 10,388
  • 3
  • 23
  • 41
Lukáš Altman
  • 497
  • 1
  • 5
  • 15
  • Possible duplicate of [How to prevent numbers being changed to exponential form in Python matplotlib figure](https://stackoverflow.com/questions/14711655/how-to-prevent-numbers-being-changed-to-exponential-form-in-python-matplotlib-fi) – jwalton Mar 04 '19 at 20:44
  • ... which is a duplicate of [this question](https://stackoverflow.com/questions/11855363/how-to-remove-relative-shift-in-matplotlib-axis/11858063) :D – Jonas Mar 04 '19 at 20:51
  • I read this question, but I don't know what to do with `NameError: name 'ax' is not defined > (1)()->None` when I use for instance: `ax.get_xaxis().get_major_formatter().set_scientific(False)` – Lukáš Altman Mar 04 '19 at 21:26

0 Answers0