0

This is how one would create a normalized, stacked bar plot with the Seaborn regular API:

tips = sns.load_dataset("tips")
sns.histplot(
    data=tips,
    x="size", hue="day",
    multiple="fill", stat="proportion",
    discrete=True, shrink=.8
)

Seaborn normalized, stacked bar chart

(see https://stackoverflow.com/a/69852321/554319)

How would one do it with the Seaborn Objects API?

I see there is so.Norm, but I can't seem to achieve what I want. On the other hand, the example above is tricky because so.Plot asks me for a y parameter.

astrojuanlu
  • 6,744
  • 8
  • 45
  • 105

0 Answers0