Background
调整字体的大小
Methods
import matplotlib.pyplot as plt
ax = plt.subplot(111)
# 设置刻度字体大小
plt.xticks(fontsize=20)
plt.yticks(fontsize=20)
# 设置坐标标签字体大小
ax.xlabel(..., fontsize=20) # 代码中的“...”代表省略的其他参数
ax.ylabel(..., fontsize=20)# 代码中的“...”代表省略的其他参数
# 设置图例字体大小
ax.legend(..., fontsize=20)# 代码中的“...”代表省略的其他参数