On Fri, Jan 27, 2012 at 12:18 PM, Tony Yu <tsy...@gmail.com> wrote: > > > On Fri, Jan 27, 2012 at 11:27 AM, nahren manuel <meetnah...@yahoo.com> > wrote: >> >> Hello , >> I have a two dimensional array, 40X20(rowsXcolumns). Each of the 40 rows >> themselves hold values of the bins of a distribution (which is not always >> normal, can expect a bimodal curve as well) >> It is little difficult to explain to I actually created a sample figure: >> http://www.flickr.com/photos/nahrenmascarenhas/6771369071/in/photostream >> >> Any help or trick will be very useful >> >> loads of thanks >> >> nahren > > > This plot seems similar to something I wanted to do (and asked the list > about). I ended up getting something to work, but the code is a bit ugly. > I've attached my most recent version (which probably needs some cleaning up, > but it works). > > If you want a continuous field instead of distinct bars (like you have in > your sample image), you may be able to write up something that's a little > simpler by sectioning out the columns an array into strips of equal width > and repeating histogram values across those columns (sorry, this is a bit > vague). Then use `imshow` to plot the array.
Looks nice. Given that it is too specialized for matplotlib, it would be an interesting addition to violin and bean plots in scikits.statsmodels if you don't mind that we borrow it (scikits.statsmodels is BSD licensed). Thanks, Josef > > -Tony > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users