matplotlib histogram stacked equivalent

I am trying to replicate

import numpy as np

import matplotlib.pyplot as plt

generate sample data

grey_height = 28 * np.random.randn(100)

lab_height = 24 * np.random.randn(100)

plt.hist([grey_height, lab_height], stacked=True, color=[‘r’, ‘b’])

plt.show()

how can I achieve this with Bokeh?

Thank you,

Naoko

Hello Naoko,

Please take a look at the Gallery available in Bokeh’s website.

There is an specific example for stacked bar chart:

http://bokeh.pydata.org/en/latest/docs/gallery/stacked_bar_chart.html

You can post other questions after reading/playing w the example.

Best!