From: John H. <jd...@gm...> - 2008-04-28 12:28:13
|
On Mon, Apr 28, 2008 at 4:44 AM, Robin <ro...@gm...> wrote: > I'm still curious to know if theres any convenience functions to do > this type of bar plotting. Also I've come to rely on the 'stacked' > option of MATLAB's bar command - is it possible to get that effect in > matplotlib? > > Here is an example of what I'd like to be able to do: > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/bar2.gif Take a look at the stacked bar demo: http://matplotlib.sourceforge.net/examples/bar_stacked.py for stacked bar charts. We do not currently have any helper functions for the side-by-side comparisons, so you have to provide the offsets yourself, as in http://matplotlib.sourceforge.net/examples/barchart_demo.py though such functionality would certainly be useful. JDH |