gpt4 book ai didi

python - 如何在 Seaborn 绘图上绘制圆圈?

转载 作者:行者123 更新时间:2023-12-01 00:23:31 31 4
gpt4 key购买 nike

我有一个 Seaborn Jointplot,我想在其上绘制一个空圆,该圆将标记 (0,0) 点周围的特定直径。像这样的:enter image description here

如何做到这一点?

最佳答案

ax_joint.plot 可以完成这项工作。

import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="white", color_codes=True)

tips = sns.load_dataset("tips")

a = sns.jointplot(x="total_bill", y="tip", data=tips)
a.ax_joint.plot([15],[3],'o',ms=60,mec='r',mfc='none')

enter image description here

关于python - 如何在 Seaborn 绘图上绘制圆圈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58791567/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com