0

I would like to change the fontsize of the order of magnitude (1e**), how can I make this happen? the snippet :

from matplotlib import pyplot as plt

x_values = [1000000, 2000000, 3000000]

y_values = [1, 2, 3]

plt.plot(x_values, y_values)
plt.ticklabel_format(axis="x", style="sci", scilimits=(0,0))

extracted from:

https://www.kite.com/python/answers/how-to-scale-an-axis-to-scientific-notation-in-a-matplotlib-plot-in-python

the plot is in the link.

thanks for the help!

0 Answers0