pythonseabornboxplotline-plotpointplot

Turn off errorbars in seaborn plots


import seaborn as sns

# sample data
df = sns.load_dataset('titanic')

ax = sns.barplot(data=df, x='class', y='age', hue='survived')

enter image description here

Is there a way to turn off the black error bars?


Solution

  • import seaborn as sns
    
    df = sns.load_dataset('titanic')
    
    ax = sns.barplot(data=df, x='class', y='age', hue='survived', errorbar=None)
    

    enter image description here

    g = sns.catplot(data=df, kind='bar', x='class', y='age', hue='survived', col='sex', errorbar=None)
    

    enter image description here