gpt4 book ai didi

python - Bokeh (Python) 图.vbar() 与 Bar()

转载 作者:行者123 更新时间:2023-12-02 05:32:11 24 4
gpt4 key购买 nike

我刚刚开始研究 Bokeh 的数据可视化,并且想知道使用 Figure.vbar()Bar() 的优点/缺点,如果有人可以澄清一下。

最佳答案

bar 来自高级图表界面。它使您可以快速、轻松地访问具有有限控制的条形图。

vbar 来自中级绘图界面,使您可以更好地控制条形图的布局。 vbar 的替代品是 rectquad,它们都来自Plotting 界面。他们为酒吧形状、位置等提供了一些独特的选项。

bar is much easier if you don't need to do anything fancy. If you decide you want more control over your plot (like HoverTool etc) you will have to instantiate a Figure and use one of it's methods.

<小时/>

bar 文档 Here

vbar 文档 Here

我根据需要使用两者。

关于python - Bokeh (Python) 图.vbar() 与 Bar(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39668868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com