Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Bar Plot Seaborn with No Error Bars

import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline


df = sns.load_dataset('titanic')

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

# No error bars (ci=None)
sns.barplot(x='class',y='age',hue='survived',data=df,ci=None)

plt.show ()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Bar #Plot #Seaborn #No #Error #Bars
ADD COMMENT
Topic
Name
3+3 =