How can I accomplish `set_xlim` or `set_ylim` in Bokeh?

前端 未结 4 1881
小鲜肉
小鲜肉 2020-12-03 06:53

I create a figure in a function, e.g.

import numpy
from bokeh.plotting import figure, show, output_notebook
output_notebook()

def make_fig():
    rows = col         


        
4条回答
  •  渐次进展
    2020-12-03 07:18

    As of Bokeh 2.X, it seems it is not possible to replace figure.{x,y}_range with a new instance of Range1d from DataRange1d or vice versa.

    Instead one has to set figure.x_range.start and figure.x_range.end for a dynamic update.

    See https://github.com/bokeh/bokeh/issues/8421 for further details on this issue.

提交回复
热议问题