Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

stacked bar chart using seaborn

import matplotlib.pyplot as plt
import seaborn as sns

#set seaborn plotting aesthetics
sns.set(style='white')

#create stacked bar chart
df.set_index('Day').plot(kind='bar', stacked=True, color=['steelblue', 'red'])
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #stacked #bar #chart #seaborn
ADD COMMENT
Topic
Name
9+2 =