标签云

微信群

扫码加入我们

WeChat QR Code

I want to plot two bar charts on the same figure.One will have only positive values, one will have only negative values.I want the positive bars in green (above the x-axis) and the negative bars in red (below the x-axis)Questions:1. Is it possible to do this with the existing highlevel Bar method in the bokeh.charts interface?2. If not, how can I create a bar chart using the lower level bokeh.plotting interface? (rather than the higher level bokeh.charts interface)


That'lldo.. Especially if the 'top', 'left' and 'right' inputs can take a dataframe and so I can do this in with only two quads... thanks!

2019年04月20日05分58秒

Glad I could help! thank you for accepting the answer!

2019年04月19日05分58秒

Things are much easier than this now, see the user's guide for lot of examples of stacked, grouped, or colormapped bar plots: bokeh.pydata.org/en/latest/docs/user_guide/categorical.html

2019年04月20日05分58秒