Python 如何从matplotlib seaborn绘图中删除特定子级

Python 如何从matplotlib seaborn绘图中删除特定子级,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,我使用seaborn jointplot创建等高线图和相应的分布 由于pearsonr与图中的信息无关,我想删除它(以避免混淆)。在启动seaborn jointplot命令时,我既无法阻止它被放在那里,也没有找到将该孩子从情节中移除的方法 ax.get_children() 命令返回以下子级: [<matplotlib.axis.XAxis at 0x7f03778cdc90>, <matplotlib.axis.YAxis at 0x7f03778e5b90>,

我使用seaborn jointplot创建等高线图和相应的分布

由于pearsonr与图中的信息无关,我想删除它(以避免混淆)。在启动seaborn jointplot命令时,我既无法阻止它被放在那里,也没有找到将该孩子从情节中移除的方法

ax.get_children()
命令返回以下子级:

[<matplotlib.axis.XAxis at 0x7f03778cdc90>,
 <matplotlib.axis.YAxis at 0x7f03778e5b90>,
 <matplotlib.legend.Legend at 0x7f0377703dd0>,
 <matplotlib.collections.PathCollection at 0x7f037ba60c90>,
 <matplotlib.collections.PathCollection at 0x7f0378325310>,
 <matplotlib.collections.PathCollection at 0x7f0377754a10>,
 <matplotlib.collections.PathCollection at 0x7f0377754f50>,
 <matplotlib.collections.PathCollection at 0x7f037776e4d0>,
 <matplotlib.collections.PathCollection at 0x7f037776ea10>,
 <matplotlib.collections.PathCollection at 0x7f037776ee90>,
 <matplotlib.collections.PathCollection at 0x7f03776f73d0>,
 <matplotlib.quiver.Quiver at 0x7f0377b79dd0>,
 <matplotlib.text.Text at 0x7f037789a6d0>,
 <matplotlib.text.Text at 0x7f037789a710>,
 <matplotlib.text.Text at 0x7f037789a750>,
 <matplotlib.patches.Rectangle at 0x7f037789a790>,
 <matplotlib.spines.Spine at 0x7f03778cdb50>,
 <matplotlib.spines.Spine at 0x7f0377953f50>,
 <matplotlib.spines.Spine at 0x7f03778cd9d0>,
 <matplotlib.spines.Spine at 0x7f03778bb390>]
似乎seaborn还以某种方式阻止了plt.ion()或/或其他重新绘制的内容。 我希望解决方案非常简单(find_object命令+delete的一些组合)。有什么建议吗

来自:

stat\u func:可调用或无

函数用于计算有关关系的统计信息并注释绘图。应将x和y映射到单个值或 (值,p)元组。如果不希望对打印进行注释,请设置为“无”

因此,在调用
jointplot
时,只需将
stat\u func
设置为
None

raise NotImplementedError('cannot remove artist')