
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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