On Oct 23, 2015, at 12:31 PM, Brian Kloppenborg <[email protected]> wrote:
On many of my plots, the hovertool activates in areas that are nowhere
close to my mouse and shows bogus information. For example, in the
attached screenshot my mouse is hovering over the glyph in the top
right, yet the hovertool activated for three different glyphs that are
very far apart on the plot. I have included a snippet from my code
below. Am I misusing the hover tool or is this a bug?
import bokeh.plotting as bplt
from bokeh.models import HoverTool
from bokeh.models.widgets import Select
from bokeh.io import output_file, save, vform
def plot(benchmarks, ...):
# configure the hover box
hover = HoverTool(
tooltips = [
# configure the plot title and axis labels, use CDN for the data source
bplt.output_file(savefile + ".html", title=title, mode='cdn')
plot = bplt.figure(title=title,
# plot images/second vs. data size
for benchmark in benchmarks:
x = ...
y = ...
source = bplt.ColumnDataSource(
data = dict(x=x,y=y,
# generate the plot
plot.line(x,y, legend=legend, color=color, line_width=2)
plot.scatter('x', 'y', source=source, legend=legend, color=color,
plot.xaxis.axis_label = xlabel
plot.yaxis.axis_label = ylabel
plot.legend.orientation = legend_location
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/562A6EDD.90103%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<Screenshot from 2015-10-23 13:18:36.png>