标签:font 效果 legend stack get tps 参考 normal out
font2 = {‘family‘: ‘Times New Roman‘,
‘weight‘: ‘normal‘,
‘size‘: 12,
}
ax.legend(loc=‘lower center‘, bbox_to_anchor=(0.5, 1),
fancybox=True, shadow=True, ncol=3, prop=font2)
效果:
官方文档:https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.legend.html?highlight=legend#matplotlib.axes.Axes.legend
参考链接:https://stackoverflow.com/questions/4700614/how-to-put-the-legend-out-of-the-plot
标签:font 效果 legend stack get tps 参考 normal out
原文地址:https://www.cnblogs.com/mercurysun/p/14532913.html