【发布时间】:2018-07-20 13:47:29
【问题描述】:
我创建了一个 seaborn 配对图,我想更改图例标题的大小。 我已经做到了:
matrix = sns.pairplot(...)
lg = plt.gcf().legend(title='something')
lg.get_title().set_fontsize(30)
有没有更优雅的方法来做到这一点?
我知道 seaborn 使用的 matplotlib 没有此处讨论的相关属性:https://github.com/matplotlib/matplotlib/issues/8699
【问题讨论】:
标签: python matplotlib seaborn