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