Python中matplotlib库绘制的图像更改横纵坐标字体大小?

可以使用matplotlib库中的set_xlabel和set_ylabel函数来更改横纵坐标字体大小,例如: plt.set_xlabel('X', fontsize=14) plt.set_ylabel('Y', fontsize=14)

猜你喜欢

转载自blog.csdn.net/weixin_42601608/article/details/129448540
今日推荐