16-anscombes_quartet.py 430 B

12345678910111213141516
  1. """
  2. Anscombe's quartet
  3. ==================
  4. _thumb: .4, .4
  5. """
  6. import seaborn as sns
  7. sns.set_theme(style="ticks")
  8. # Load the example dataset for Anscombe's quartet
  9. df = sns.load_dataset("anscombe")
  10. # Show the results of a linear regression within each dataset
  11. sns.lmplot(x="x", y="y", col="dataset", hue="dataset", data=df,
  12. col_wrap=2, ci=None, palette="muted", height=4,
  13. scatter_kws={"s": 50, "alpha": 1})