如何为 Python 散景图设置翻转值

How to set rollover value for Python Bokeh chart

我正在构建一个带有散景图的 python Flask 流媒体服务器。

我已经用 AjaxDataSource class 做到了,但是我需要为要显示的数据设置一个限制,比如 stream 方法中的翻转值

http://docs.bokeh.org/en/latest/_modules/bokeh/models/sources.html#ColumnDataSource.stream

听起来您想要 AjaxDataSourcemax_size 属性?参考指南中有描述:

http://docs.bokeh.org/en/latest/docs/reference/models/sources.html#bokeh.models.sources.AjaxDataSource.max_size

当您需要查找您已经了解的事物的具体细节时,参考指南是一个很好的资源。