标签: python matplotlib
我想将字体大小更改为一个数量级(1e **),如何实现呢? 摘要:
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))
摘自:
https://www.kite.com/python/answers/how-to-scale-an-axis-to-scientific-notation-in-a-matplotlib-plot-in-python
情节在链接中。
感谢您的帮助!