seaborn 联合图,如何删除边缘轴之间的 space

seaborn joint plot, how to remove space between marginal axes

我正在尝试绘制一个 seaborn 联合图,但轴线没有连接。如何将边缘轴连接回主图?

sns_plot = sns.jointplot(x = 'f48', y= x,data=df, 
                     kind ='kde',
                     cmap = 'plasma')

sns_plot.set_axis_labels(xlabel = 'CD',ylabel = 'x position', size =14)
plt.suptitle('joint plot',y = 0.97, size =24) # title
plt.tight_layout()
plt.show() 

jointplot 在轴之间添加填充:

space : Space between the joint and marginal axes (default 0.2)

通过设置 space=0 连接边缘轴:

sns.jointplot(x='sepal_length', y='sepal_width', data=sns.load_dataset('iris'),
              kind='kde', cmap='plasma', space=0)
#                                        -------