I use a seaborn Factorplot (kind=bar) to represent in total 6 bars in 2 "categories" (3 bars for each category). I would like to enhance this factorplot by using the stacked design, that is I want to represent each bar by its "subcomponents". I know that this is possible for barplot but is it also possible for factorplot?
相关问题
- How to plot a draggable polygon
- Tick label text and frequency in matplotlib plot
- Matplotlib: how to set ticks of twinned axis in lo
- Matplotlib differentiate between mean and median w
- matplotlib: color by dict without normalization
相关文章
- How to use a framework build of Python with Anacon
- Adding line markers when using LineCollection
- How to add clipboard support to Matplotlib figures
- Adding a legend to a matplotlib boxplot with multi
- Matplotlib pyplot axes formatter
- matplotlib bwr-colormap, always centered on zero
- TypeError: ufunc 'isnan' not supported for
- ImportError: No module named cycler
Randy Zwitch explains how to create a stacked bar chart in seaborn.
The solution is to think of a stacked bar chart as multiple, overlaying, plots on the same graph so the bottom segment of the bars are at the front and obscure the lowest parts of the subsequent segments.
To quote from his blog :