python 数据可视化---Anscombe’s quartet

import seaborn as sns
sns.set(style="ticks")
# Load the example dataset for Anscombe's quartet
df = sns.load_dataset("anscombe")
# Show the results of a linear regression within each dataset
sns.lmplot(x="x", y="y", col="dataset", hue="dataset", data=df,
           col_wrap=2, ci=None, palette="muted", size=4,
           scatter_kws={"s": 50, "alpha": 1})

 

posted @ 2018-04-17 15:18  Jesse_Li  阅读(550)  评论(0编辑  收藏  举报