Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lasso select is broken with non-circle markers #4936

Closed
bryevdv opened this issue Aug 9, 2016 · 0 comments · Fixed by #5036
Closed

Lasso select is broken with non-circle markers #4936

bryevdv opened this issue Aug 9, 2016 · 0 comments · Fixed by #5036

Comments

@bryevdv
Copy link
Member

bryevdv commented Aug 9, 2016

The following code:

from bokeh.plotting import figure, output_file, show
import numpy as np

p = figure()

x = np.linspace(0,10, 1000)
y = np.sin(x) + np.random.random(len(x)) * 0.1
# Create a figure p with tools="lasso"
p = figure(tools="lasso_select, box_select")

# Add square renderer r at x and y with selection_color="red"
# and nonselection_alpha=0.2
p.triangle(x, y, selection_color="red", nonselection_alpha=0.1)

# This code is already written
output_file("hover_glyph.html")
show(p)

results in

screen shot 2016-08-09 at 7 56 27 am


Works fine if a circle renderer is used instead.

This may be a report of the same issue: https://groups.google.com/a/continuum.io/forum/?pli=1#!searchin/bokeh/super$20jumpy$20and$20barely$20responsive/bokeh/FptxSPlvBUE/NIGh3ZuTCAAJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant