import seaborn as sns
# sample data
df = sns.load_dataset('titanic')
ax = sns.barplot(data=df, x='class', y='age', hue='survived')
Is there a way to turn off the black error bars?
errorbar
parameter should be used instead.ci
parameter is deprecated from seaborn 0.12.0, as per v0.12.0 (September 2022): More flexible errorbars. This applies to the following plots:
seaborn.barplot
, and sns.catplot
with kind='bar'
seaborn.lineplot
, and sns.relplot
with kind='line'
g = sns.relplot(data=df, kind='line', x='class', y='age', hue='survived', col='sex', errorbar=None)
ax = sns.lineplot(data=df, x='class', y='age', hue='survived', errorbar=None)
seaborn.pointplot
, and sns.catplot
with kind='point'
g = sns.catplot(data=df, kind='point', x='class', y='age', hue='survived', col='sex', errorbar=None)
ax = sns.pointplot(data=df, x='class', y='age', hue='survived', errorbar=None)
import seaborn as sns
df = sns.load_dataset('titanic')
ax = sns.barplot(data=df, x='class', y='age', hue='survived', errorbar=None)
g = sns.catplot(data=df, kind='bar', x='class', y='age', hue='survived', col='sex', errorbar=None)