Answers for "Bar Plot Seaborn with No Error Bars"

0

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 ()
Posted by: Guest on January-26-2022

Python Answers by Framework

Browse Popular Code Answers by Language