我想在matplotlib图的传说中显示Times New Roman中的字体.我已将所有其他刻度标签/轴标签/标题更改为Times New Roman,并搜索了文档,但我只能找到如何使用prop 参数更改图例中的字体大小pyplot.legend()
prop
pyplot.legend()
谢谢
当然,在发布后,我找到了答案.针对同一问题的其他人的解决方案: import matplotlib as mpl mpl.rc('font',family='Times New Roman')
import matplotlib as mpl mpl.rc('font',family='Times New Roman')
python matplotlib legend legend-properties
legend ×1
legend-properties ×1
matplotlib ×1
python ×1