acd97e3a8cdb11c18716b6e5588c84cae8bcd80a,examples/plotting/file/tap.py,,,#,10

Before Change



p = figure(title="Tappy Scatter", tools=TOOLS)

p.circle(x, y, radius=radii, source=source,
       fill_color=colors, fill_alpha=0.6,
       line_color=None, name="mystuff")

p.text(x, y, text=inds, alpha=0.5, text_font_size="5pt",
     text_baseline="middle", text_align="center")

After Change



p = figure(title="Tappy Scatter", tools=TOOLS)

cr = p.circle(x, y, radius=radii, source=source,
              fill_color=colors, fill_alpha=0.6, line_color=None)

tr = p.text(x, y, text=inds, alpha=0.5, text_font_size="5pt",
            text_baseline="middle", text_align="center")

// in the broswer console, you will see messages when circles are clicked
tool = p.select_one(TapTool).renderers = [cr]

output_file("tap.html")

show(p)  // open a browser
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: bokeh/bokeh
Commit Name: acd97e3a8cdb11c18716b6e5588c84cae8bcd80a
Time: 2015-12-22
Author: bryanv@continuum.io
File Name: examples/plotting/file/tap.py
Class Name:
Method Name:


Project Name: bokeh/bokeh
Commit Name: b4b9f5b25eea5a4ec456254083b455efb76cdc35
Time: 2015-09-10
Author: maggie.mari@continuum.io
File Name: sphinx/source/docs/user_guide/source_examples/styling_glyph_properties.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: 0001654c779c4bffe0ab685c2b1fc498410fed61
Time: 2020-02-13
Author: gautampiyus@gmail.com
File Name: arviz/plots/backends/bokeh/essplot.py
Class Name:
Method Name: plot_ess


Project Name: danforthcenter/plantcv
Commit Name: c1f3427e05a40aef725c4e1edbe389524b4c3a21
Time: 2019-10-30
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/roi/roi_methods.py
Class Name:
Method Name: multi