📅  最后修改于: 2022-03-11 14:55:51.798000             🧑  作者: Mango
代码示例1
from matplotlib.ticker import FormatStrFormatter
fig, ax = plt.subplots()
ax.yaxis.set_major_formatter(FormatStrFormatter('%.2f'))