Scatterplot without linear fit in seaborn

前端 未结 3 1973
时光说笑
时光说笑 2021-02-07 00:34

I am wondering if there is a way to turn off the linear fit in seaborn\'s lmplot or if there is an equivalent function that just produces the scatterplot. Sure, I

3条回答
  •  花落未央
    2021-02-07 01:17

    This doesn't directly answer the question, but may help others who find there way here who just want to do a plain old scatter plot.
    As of version 0.9.0 seaborn now has a scatterplot method.

    import seaborn as sns
    sns.set(style="ticks")
    
    df = sns.load_dataset("anscombe")
    sns.scatterplot("x", "y", data=df, hue='dataset')
    

提交回复
热议问题