Thanks

That was just what I was looking for.
The bihistogram solution is interesting too, but I think I will to
with alpha since I might want to use a log y scale.

Regards
Neil

On Nov 12, 2007 3:06 PM, Eric Firing <[EMAIL PROTECTED]> wrote:
>
> Neil M wrote:
> > Hello,
> >
> > Is it possible to plot two histograms on the same axis without having
> > the bars on top of each other.
> >
> > I'm trying to determine how similar a distribution of activity is
> > between a large data set and a small subset.
> >
> > I have 2 million records with a last activity date.  I can plot both
> > the sample and the full population on a normalized histogram, and in
> > different colours but the later plot covers smaller values of the
> > earlier one.
> >
> > Thanks
> > Neil
>
> Neil,
>
> I can think of two alternatives.  If one of the two distributions has
> all values higher than the other, so you want it to be behind, then you
> can use the zorder property of the patches.  From your description it
> sounds like this is the case.  If not, however, you can set the alpha
> property so that both sets of bars are semi-transparent.
>
> Both of these properties can be passed in as kwargs to the hist() function:
>
> hist(randn(200), edgecolor='r', zorder=5, alpha=0.5)
> hist(randn(500), edgecolor='g', zorder=4, alpha=0.5)
>
> Eric
>
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
>
> > _______________________________________________
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to