如seaborn API中所述,以下代码将生成线性回归图。
import seaborn as sns
import matplotlib.pyplot as plt
# loading dataset
penguins = sns.load_dataset("penguins")
# draw jointplot with reg kind
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", kind="reg")
This is the regression plot
不幸的是,没有回归线。如何在API中添加像这样的行
转载请注明出处:http://www.runhoujixie.com/article/20230526/1416172.html