[Matplotlib-users] Combine two histogramm in one histogramm

Thomas Caswell tcaswell at gmail.com
Sat Aug 5 19:34:37 EDT 2017


I think you are looking for stacked histograms:
http://matplotlib.org/examples/pylab_examples/bar_stacked.html

Tom

On Sat, Aug 5, 2017 at 12:36 PM bellafkih <belafkih.hayat at gmail.com> wrote:

> Hello,
>
> I present a data of each month in histogram, so for each month, there two
> percentages: first the percentage of messages updates (example: 80 %) and
> the second, the percentage of non update messages (eg. 20%), i
> must divide the update messages into two parts: the first : important
> messages (eg. 70 %) and non important messages (eg 30%).
> My current solution is to create two histograms, but i ask if there is a
> possibility to create only graphic, so present the 70 % and 30 % in the
> part
> of 80% ?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/Combine-two-histogramm-in-one-histogramm-tp48057.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170805/c20050d2/attachment.html>


More information about the Matplotlib-users mailing list