Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python seaborn FaceGrid:如何在顶部为suptitle留出适当的空间_Python_Page Title_Seaborn - Fatal编程技术网

Python seaborn FaceGrid:如何在顶部为suptitle留出适当的空间

Python seaborn FaceGrid:如何在顶部为suptitle留出适当的空间,python,page-title,seaborn,Python,Page Title,Seaborn,有人能告诉我如何在FacetGrid上留下额外的空间吗?我尝试将超级标题放置在FacetGrid绘图的顶部,但由于默认设置中顶部的边距非常有限,因此最终超级标题与子绘图标题重叠 谢谢使用图法子图\u adjust在绘图顶部添加空间: g = sns.lmplot("x", "y", col="c", data=df) g.fig.suptitle("Title of the plot", size=16) g.fig.subplots_adjust(top=.9) .suptitle(…)是一

有人能告诉我如何在FacetGrid上留下额外的空间吗?我尝试将超级标题放置在FacetGrid绘图的顶部,但由于默认设置中顶部的边距非常有限,因此最终超级标题与子绘图标题重叠


谢谢

使用图法
子图\u adjust
在绘图顶部添加空间:

g = sns.lmplot("x", "y", col="c", data=df)
g.fig.suptitle("Title of the plot", size=16)
g.fig.subplots_adjust(top=.9)
.suptitle(…)
是一个。它有
x
y
参数,默认值为
y=0.98
。您可以将其调整得更高一点,而不是移动子地块(在某些情况下,您可能没有足够的自由度)

g.fig.suptitle("My super title", y=1.05)