Vivian
2/23/2020 - 12:27 PM

plot multiple charts together - facetgrid

# Initialize the FacetGrid object
pal = sns.cubehelix_palette(10, rot=-.25, light=.7, reverse=True)
g = sns.FacetGrid(data = data, row="bq_count", aspect=5, height=2, palette=pal, row_order=['4-bouquet','8-bouquet','12-bouquet'])

# Draw the densities in a few steps
g.map(sns.distplot, "column_with_value", color="cornflowerblue")
g.map(plt.axhline, y=0, lw=2)
g.fig.suptitle('Number of orders before package',y=1,x=0.3)