Search code examples
pythonseabornpairplot

how to remove confidance interval in pairplot?


May you please help to remove the confidence interval in the seaborn pairplot.

import seaborn as sns
penguins = sns.load_dataset("penguins")
sns.pairplot(penguins,kind="reg")

I know it is possible in regplot or lmplot using ci=None, but I would like the same functionality in pairplot.

Thanks.


Solution

  • According to the pair plot documentation, you can pass keyword arguments that are specifically for the plot. This should do it.

    import seaborn as sns
    penguins = sns.load_dataset("penguins")
    sns.pairplot(penguins,kind="reg", plot_kws={'ci':None})