Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/327.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成对地块的水平和垂直边缘_Python_Matplotlib_Seaborn - Fatal编程技术网

Python 将标签设置为seaborn成对地块的水平和垂直边缘

Python 将标签设置为seaborn成对地块的水平和垂直边缘,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,我从没有尺寸标签的数据创建pairplot,但我想在整个绘图的x轴和y轴上添加一个标签,解释各个数字(我的数据的尺寸)的来源 此外,我想裁剪绘图,使其仅显示绘图的下部。为此,我还需要向下移动x轴的标签 基本上,我希望从这张图片中得到绘图: 以下是我创建pairplot的方式: g = sns.pairplot(data=sts_df.iloc[::100, :]) g.fig.set_size_inches(width, 11) g.set(yticks=[]) g.set(xticks=[]

我从没有尺寸标签的数据创建pairplot,但我想在整个绘图的x轴和y轴上添加一个标签,解释各个数字(我的数据的尺寸)的来源

此外,我想裁剪绘图,使其仅显示绘图的下部。为此,我还需要向下移动x轴的标签

基本上,我希望从这张图片中得到绘图:

以下是我创建pairplot的方式:

g = sns.pairplot(data=sts_df.iloc[::100, :])
g.fig.set_size_inches(width, 11)
g.set(yticks=[])
g.set(xticks=[])
g.fig.suptitle("Pairplot across 15 dimensions of STS data")
plt.show()
这就是我目前拥有的: 找到了解决方案:

g.fig.text(-0.05, 0.5, "Y Label", ha="center", fontsize = 22, rotation=90)
g.fig.text(0.5, -0.05, "X Label", ha='center', va="center", fontsize = 22)