您可以通过调整
prop关键字为图例设置单独的字体大小。
plot.legend(loc=2, prop={'size': 6})
这需要对应于
matplotlib.font_manager.FontProperties属性的关键字字典。参见图例文档:
关键字参数:
prop: [ None | FontProperties | dict ] A matplotlib.font_manager.FontProperties instance. If prop is a dictionary, a new instance will be created with prop. If None, use rc settings.
从1.2.1版开始,也可以使用关键字
fontsize。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)