☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Box plots from two different arrays

Community Support
Sri_Krishna
Sri_Krishna

Hi,

I’d like to create a box plot from two different arrays - I have the mean and the standard deviation of a data set stored in two different numpy arrays.

I would like the centre of the box plot to be the mean value, and the “spread” of the boxplot to be the standard deviation. I read the docs, and it’s not clear to me how to achieve this with the high level chart interface to boxplots. That is, the docs say the data is “grouped” but that’s not really what I’d like to do in this case.

I also tried to do this with the rectangle glyph, but it isn’t possible to pass an array of heights such that the heights correspond to the standard deviation values.

Is this possible in bokeh currently? I’m using the 0.11 version. Also I would like to avoid pulling in pandas as a dependency if at all possible, but I’m open to doing that if it’s the only way forward.

Thanks,

···

Srikrishna Sekhar

⌁   Link to post
Sri_Krishna
Sri_Krishna

Well I’ve managed to get a scatter plot with error bars as shown in this post.

But it would be nice if there was a default glyph that displayed points + error bars. Anyway, I think my problem for the moment is solved.

Thanks!

···

On 25 January 2016 at 11:52, Sri Krishna kitchi.srikrishna@gmail.com wrote:

Hi,

I’d like to create a box plot from two different arrays - I have the mean and the standard deviation of a data set stored in two different numpy arrays.

I would like the centre of the box plot to be the mean value, and the “spread” of the boxplot to be the standard deviation. I read the docs, and it’s not clear to me how to achieve this with the high level chart interface to boxplots. That is, the docs say the data is “grouped” but that’s not really what I’d like to do in this case.

I also tried to do this with the rectangle glyph, but it isn’t possible to pass an array of heights such that the heights correspond to the standard deviation values.

Is this possible in bokeh currently? I’m using the 0.11 version. Also I would like to avoid pulling in pandas as a dependency if at all possible, but I’m open to doing that if it’s the only way forward.

Thanks,
Srikrishna Sekhar

Srikrishna Sekhar

⌁   Link to post

End of archived discussion · Replies are disabled