☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Having some GMap plot problems

Community Support
Ben_Laken
Ben_Laken

Hi All,

I am trying to work with the GMapPlot to display the metadata of a project I am working on.

It involves mapping a large number (300,000 circles). I have been trying to use the Charts.GMapPlot, following some examples and some trial and error.

Firstly, I get a bit of (seemingly) buggy behaviour with the plot. After I produce it I often need to save the notebook (with the figure inline) and re-open it to view the results displayed correctly (otherwise the map is almost entirely outside of the plot frame, which itself is blank). Apart from that, I tried adding some tools to the plot, but I get some behaviour which isn’t quite optimal, and some things that also seem buggy. Any ideas how I can get around it?

  1. Reset tool: currently this resets the lon/lat (x,y) values to 0.0, and 0.0, at original zoom level: would be good to over-ride these values to the originally specified lat. lon. set in GMapOptions.

  2. Box Zoom Tool: this appears to just centre the plot over the centre point of the box zoom, without changing the zoom level of the map.

  3. Pan bug? When I pan, the glyphs (in my case circles), can become dissociated from their correct map location.

  4. Color scale: Is it possible to add a colour scale legend relating to the colours assigned to my circle glyphs?

You can see my example and code in the below notebook:

http://nbviewer.ipython.org/github/benlaken/ECCO/blob/master/iPlots_xyGMap.ipynb

If you want to play with the code directly, it (and the dependency file) is in my rather messy repo at https://github.com/benlaken/ECCO

Also, I am new to using Bokeh, so if you see a better way for me to do something, please let me know.

Thanks,

—Benjamin

⌁   Link to post
Fabio_Pliger
Fabio_Pliger

Hi Benjamin,

I’ll try to take a look more in details about the issues you’ve posted. There are a couple of things that are not clear to me thought:

  • What version of Bokeh are using?

  • You’ve mentioned you are trying Charts.GMapPlot but in the NB you’ve linked here you are using bokeh.models.GMapPlot directly. Are you having the issues with both classes?

Please note that Charts.GMapPlot is still very experimental and have actually been removed in the upcoming release 0.8. It’s very likely to be reintroduced in future releases but we don’t have an exact date for that now. With that in mind I’d recommend you to use it from bokeh.models instead.

Thank you

Fabio

···

On Sunday, February 15, 2015 at 2:23:07 PM UTC+1, Benjamin Laken wrote:

Hi All,

I am trying to work with the GMapPlot to display the metadata of a project I am working on.

It involves mapping a large number (300,000 circles). I have been trying to use the Charts.GMapPlot, following some examples and some trial and error.

Firstly, I get a bit of (seemingly) buggy behaviour with the plot. After I produce it I often need to save the notebook (with the figure inline) and re-open it to view the results displayed correctly (otherwise the map is almost entirely outside of the plot frame, which itself is blank). Apart from that, I tried adding some tools to the plot, but I get some behaviour which isn’t quite optimal, and some things that also seem buggy. Any ideas how I can get around it?

  1. Reset tool: currently this resets the lon/lat (x,y) values to 0.0, and 0.0, at original zoom level: would be good to over-ride these values to the originally specified lat. lon. set in GMapOptions.
  1. Box Zoom Tool: this appears to just centre the plot over the centre point of the box zoom, without changing the zoom level of the map.
  1. Pan bug? When I pan, the glyphs (in my case circles), can become dissociated from their correct map location.
  1. Color scale: Is it possible to add a colour scale legend relating to the colours assigned to my circle glyphs?

You can see my example and code in the below notebook:

http://nbviewer.ipython.org/github/benlaken/ECCO/blob/master/iPlots_xyGMap.ipynb

If you want to play with the code directly, it (and the dependency file) is in my rather messy repo at https://github.com/benlaken/ECCO

Also, I am new to using Bokeh, so if you see a better way for me to do something, please let me know.

Thanks,

—Benjamin

⌁   Link to post
Ben_Laken
Ben_Laken

Hi Fabio, I am using version 0.7.1.

So far I am having trouble getting much of the GMaps to work - the lack of documentation and examples makes it quite difficult for me, and the multiple classes is also adding to my confusion.

Any ideas where I should start? I had previously just followed the example in the bokeh example (glyph folder).

Best,

—Benjamin

···

On 16 Feb 2015, at 00:19, Fabio Pliger fabio.pliger@continuum.io wrote:

Hi Benjamin,

I’ll try to take a look more in details about the issues you’ve posted. There are a couple of things that are not clear to me thought:

  • What version of Bokeh are using?
  • You’ve mentioned you are trying Charts.GMapPlot but in the NB you’ve linked here you are using bokeh.models.GMapPlot directly. Are you having the issues with both classes?

Please note that Charts.GMapPlot is still very experimental and have actually been removed in the upcoming release 0.8. It’s very likely to be reintroduced in future releases but we don’t have an exact date for that now. With that in mind I’d recommend you to use it from bokeh.models instead.

Thank you

Fabio

On Sunday, February 15, 2015 at 2:23:07 PM UTC+1, Benjamin Laken wrote:

Hi All,

I am trying to work with the GMapPlot to display the metadata of a project I am working on.

It involves mapping a large number (300,000 circles). I have been trying to use the Charts.GMapPlot, following some examples and some trial and error.

Firstly, I get a bit of (seemingly) buggy behaviour with the plot. After I produce it I often need to save the notebook (with the figure inline) and re-open it to view the results displayed correctly (otherwise the map is almost entirely outside of the plot frame, which itself is blank). Apart from that, I tried adding some tools to the plot, but I get some behaviour which isn’t quite optimal, and some things that also seem buggy. Any ideas how I can get around it?

  1. Reset tool: currently this resets the lon/lat (x,y) values to 0.0, and 0.0, at original zoom level: would be good to over-ride these values to the originally specified lat. lon. set in GMapOptions.
  1. Box Zoom Tool: this appears to just centre the plot over the centre point of the box zoom, without changing the zoom level of the map.
  1. Pan bug? When I pan, the glyphs (in my case circles), can become dissociated from their correct map location.
  1. Color scale: Is it possible to add a colour scale legend relating to the colours assigned to my circle glyphs?

You can see my example and code in the below notebook:

http://nbviewer.ipython.org/github/benlaken/ECCO/blob/master/iPlots_xyGMap.ipynb

If you want to play with the code directly, it (and the dependency file) is in my rather messy repo at https://github.com/benlaken/ECCO

Also, I am new to using Bokeh, so if you see a better way for me to do something, please let me know.

Thanks,

—Benjamin

–
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/88ae9168-7dae-47ef-8b8f-69e0f97c94b8%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Ben_Laken
Ben_Laken

Thanks Fabio - sorry I don’t have the ability to help you pin down the exact bugs myself.

Best,

—Benjamin

···

On 19 Feb 2015, at 13:26, Fabio Pliger fabio.pliger@continuum.io wrote:

Hi Benjamin,

This is a bug and I’ve been able to reproduce it on master branch as well. Thanks for reporting. I’ve opened an issue here: https://github.com/bokeh/bokeh/issues/1938

Best

Fabio

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f5bb70b6-992e-47f7-ad21-ce5a96051bb6%40continuum.io.

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

⌁   Link to post

End of archived discussion · Replies are disabled