legend click_policy set to hide for Circle glyphs added to a GMapPlot not behaving as expected

Hello All

I’ve run into an unexpected problem. I’m running Bokeh 0.12.11 on python 2.7 (Anaconda) on Windows 10.

I have a set of Lat/Lon coordinates I wish to plot on a map. Each point has a code/provenance identifying the source of the data. I’d like to plot each point colored by code. Then produce an interactive legend to hide/show points associated with these codes on the map.

I’m currently using a GMapPlot, adding a Circle glyph, then adding a legend using a bpkeh.models.Legend. Setting the click policy to “hide”

The Circle glyphs do not seem to vanish, but rather the view order of the Glyphs changes.

So I guess my questions is, (before I post some example code). Is it possible to setup of a legend on a GMapPlot with a click_policy of “hide”?

Thanks,

Eli Hunter

Hi,

I would not expect any problems, but it is also true that GMapPlot in particular has some weird differences that cannot be avoided, so it's not impossible there is an issue. If you can provide a complete minimal example to reproduce that will go very very towards being able to investigate.

Thanks,

Bryan

···

On Dec 4, 2017, at 14:28, [email protected] wrote:

Hello All

I've run into an unexpected problem. I'm running Bokeh 0.12.11 on python 2.7 (Anaconda) on Windows 10.

I have a set of Lat/Lon coordinates I wish to plot on a map. Each point has a code/provenance identifying the source of the data. I'd like to plot each point colored by code. Then produce an interactive legend to hide/show points associated with these codes on the map.

I'm currently using a GMapPlot, adding a Circle glyph, then adding a legend using a bpkeh.models.Legend. Setting the click policy to "hide"

The Circle glyphs do not seem to vanish, but rather the view order of the Glyphs changes.

So I guess my questions is, (before I post some example code). Is it possible to setup of a legend on a GMapPlot with a click_policy of "hide"?

Thanks,
Eli Hunter

--
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/517d2f81-0d4e-4b9b-a94f-72a94e4c0e3d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

Thanks for responding. It turns out the issue is on my end. I wasn’t being particularly careful and plotted duplicate sets of glyphs to the map. It’s operating as expected now.

Eli

···

On Mon, Dec 4, 2017 at 6:07 PM, Bryan Van de ven [email protected] wrote:

Hi,

I would not expect any problems, but it is also true that GMapPlot in particular has some weird differences that cannot be avoided, so it’s not impossible there is an issue. If you can provide a complete minimal example to reproduce that will go very very towards being able to investigate.

Thanks,

Bryan

On Dec 4, 2017, at 14:28, [email protected] wrote:

Hello All

I’ve run into an unexpected problem. I’m running Bokeh 0.12.11 on python 2.7 (Anaconda) on Windows 10.

I have a set of Lat/Lon coordinates I wish to plot on a map. Each point has a code/provenance identifying the source of the data. I’d like to plot each point colored by code. Then produce an interactive legend to hide/show points associated with these codes on the map.

I’m currently using a GMapPlot, adding a Circle glyph, then adding a legend using a bpkeh.models.Legend. Setting the click policy to “hide”

The Circle glyphs do not seem to vanish, but rather the view order of the Glyphs changes.

So I guess my questions is, (before I post some example code). Is it possible to setup of a legend on a GMapPlot with a click_policy of “hide”?

Thanks,

Eli Hunter

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/517d2f81-0d4e-4b9b-a94f-72a94e4c0e3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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/68D68440-1254-46D1-AD84-AD023FAA468D%40anaconda.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.