☰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

Is it wrong to have multiple hbar glyphs within the same figure?

Community Support
mbilyanov
mbilyanov

Hi,

Am I doing something wrong if I have this in my bokeh plot:

p.hbar(y='ask_price', height=0.25, left='ask_order_start_time',
        right='ask_order_end_time', color='color', source=source_asks)

p.hbar(y='bid_price', height=0.25, left='bid_order_start_time',
        right='bid_order_end_time', color='color', source=source_bids)

Basically 2 different hbar glyphs reading from different data sources, existing inside the same figure.

⌁   Link to post
Bryan
Bryan

It’s definitely fine to have multiple bar glyphs in the same plot, for example:

https://docs.bokeh.org/en/latest/docs/user_guide/basic/bars.html#visual-offset

You haven’t actually told us anything at all about what’s going wrong, or stated in detail how results differ from expectations, or provided a complete Minimal Reproducible Example so that we might run the code and see for ourselves. So unfortunately there’s not enough information to speculate about what might be going awry in your specific situation.

⌁   Link to post
mbilyanov
mbilyanov

Cool thanks! Yeah, it was working already, no errors whatsoever. Just wanted to check to make sure there are no unexpected behaviours or unnecessary renderings due to me using the API in a wrong way.

⌁   Link to post

End of archived discussion · Replies are disabled