我正在和seaborn做一件简单的事
然而,当我这样做的时候
ax2=sns.displot(outlist) ax2.set(xlabel='Rate(Hz)', title='Distribution of publication rates')
我得到了
如何正确放置标题和标签?
使用 tight_layout :
tight_layout
g = sns.displot(outlist) g.set(xlabel='Rate(Hz)', title='Distribution of publication rates') g.tight_layout()