python - Bokeh - How to Click and Drag? -


i click-and-drag scatter points points of bokeh scatter plot. ideas how this?

(edit: an example of i'd do)

for example of scatter, code below generates scatter plot chart found half-way through this page.

from bokeh.plotting import figure, output_file, show  # create figure object p = figure(width=300, height=300, tools="pan,reset,save")  # add circle renderer figure p.circle([1, 2.5, 3, 2], [2, 3, 1, 1.5], radius=0.3, alpha=0.5)  # specify how output plot(s) output_file("foo.html")  # display figure show(p) 

add in lasso_select , box select tools , rid of pan tool (for now). there seems bug pan gets stuck.

from bokeh.plotting import figure, output_file, show  # create figure object p = figure(width=300, height=300, tools="reset, save, box_select, lasso_select")  # add circle renderer figure p.circle([1, 2.5, 3, 2], [2, 3, 1, 1.5], radius=0.3, alpha=0.5)  # specify how output plot(s) output_file("foo.html")  # display figure show(p) 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -