Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to turn off error bars in Seaborn Bar Plot using Matplotlib?
To turn off error bars in a Seaborn bar plot, we can take the following stepsā
- Load an example dataset from the online repository (requires Internet).
- Show the point estimates and confidence intervals with bars.
- To display the figure, use show() method.
Example
import seaborn as sns
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = [7.00, 3.50]
plt.rcParams["figure.autolayout"] = True
df = sns.load_dataset('titanic')
sns.barplot(x='class', y='age', hue='survived', data=df, ci=None)
plt.show()
Output

Advertisements
