Closed mhamilton723 closed 6 years ago
DataRange1d is incompatible with GmapPlot, which must defer to the google maps API to set ranges. Use Range1d instead. I’ll leave this issue as a task to make it fail earlier and louder.
Thanks for the quick reply, this was exactly what was needed! You might want to also mark this as a task to change the documentation as well.
@mhamilton723 is it demonstrated incorrectly with a DataRange1d
some place? If so a specific pointer to a location would help. If not, I'll probably leave it:
@mattpap I think the proper way to do this will mean factoring much of Plot
into a BasePlot
that both Plot
and MapPlot
can separately inherit from. Then GMapPlot
can define more restrictive range properties.
I'm not sure if such deep changes are really needed for this purpose. An error message can be achieved by cheaper means. If however want to proceed, then I would leave this for the next release, so at least I have some time to give this a thought.
The only other way to catch it in all cases is a validation error, which also does not seem ideal.
This started getting pretty hairy, I think I will just add a check at __init__
as well as a validation error after all.
Runtime Info:
notebook server is 5.0.0 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:09:58) IPython 6.0.0 bokeh '0.12.9' ipywidgets '7.0.1' ubuntu 16
When i run the gmaps demo with push notebook it displays the dots in the wrong location until i interact with he map.
pre interaction
post interaction