Hovertool not working with quad

Hi!

Using the following code to generate a quad plot:

	data_dict = self.data_generation(filename)

	self.data_test(data_dict)

	name_check = data_dict["gen_info"]["DATA FILES"]

	attr_id = name_check[1][4][:-3] + "_" + name_check[2][2]

	TOOLS="pan,wheel_zoom,box_zoom,reset, hover, previewsave"

	figure_obj = figure(plot_width = 1000, plot_height = 800, y_axis_type = "log",

		title = attr_id, tools = TOOLS)

	hover = figure_obj.select(dict(type = HoverTool))

	hover.tooltips=[("Value:", "$top")]

	hist, edges = np.histogram(data_dict["data"][0]["y"],  bins = data_dict["data"][0]["x"])

	source = ColumnDataSource(data = dict(top = hist, left = edges[:-1], right = edges[1:]))

	#hist = figure_obj.Histogram(source )

	figure_obj.quad(top = "top", bottom = 0, left = "left" , right = "right", source = source)

The output has a hovertool enabeled but does not display the tooltip.

Cheers,

Robert

I think this is an existing bug:

  Trouble getting selection to work on quads · Issue #964 · bokeh/bokeh · GitHub

If possible, if you could add a complete runnable example to that issue that reproduces the problem, that would certainly be helpful. In mean time as a workaround I would suggest adapting to "rect" instead of "quad".

Bryan

···

On May 4, 2016, at 8:42 AM, Robert <[email protected]> wrote:

Hi!

Using the following code to generate a quad plot:

    data_dict = self.data_generation(filename)
    self.data_test(data_dict)
    name_check = data_dict["gen_info"]["DATA FILES"]
    attr_id = name_check[1][4][:-3] + "_" + name_check[2][2]

    TOOLS="pan,wheel_zoom,box_zoom,reset, hover, previewsave"
    figure_obj = figure(plot_width = 1000, plot_height = 800, y_axis_type = "log",
      title = attr_id, tools = TOOLS)

    hover = figure_obj.select(dict(type = HoverTool))
    hover.tooltips=[("Value:", "$top")]

    hist, edges = np.histogram(data_dict["data"][0]["y"], bins = data_dict["data"][0]["x"])
    source = ColumnDataSource(data = dict(top = hist, left = edges[:-1], right = edges[1:]))
    #hist = figure_obj.Histogram(source )
    figure_obj.quad(top = "top", bottom = 0, left = "left" , right = "right", source = source)

The output has a hovertool enabeled but does not display the tooltip.

Cheers,
Robert

--
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/4cce512e-34ec-4dd0-8d04-97dd911122b2%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.