bokeh
bokeh copied to clipboard
PolySelectTool area remains the same at all zoom levels
When trying to select a series of points using the PolySelectTool, the area selected doesn't respect the zoom level of the plot. Particularly for the mapping application I'm working on, this is extremely undesirable behavior, as it precludes precise selection of points.
I first mentioned this over on the Google Group here. I was asked to open an issue here for the bug. Example screenshots from that post:

Here's the minimal code to reproduce the bug (area/points displayed differ from screenshots above). The two lines can be uncommented to show the issue on a tile map.
from bokeh.io import (
show,
output_file
)
from bokeh.models import (
PolySelectTool,
ColumnDataSource,
Circle,
WheelZoomTool,
PanTool
)
from bokeh.plotting import figure
#from bokeh.tile_providers import CARTODBPOSITRON
source = ColumnDataSource(
{'coordsX':[-8215213.30496,
-8173542.15792,
-8207605.64239],
'coordsY':[5265013.23126,
5198976.24299,
5267118.16664]})
p = figure(tools=["wheel_zoom","pan","poly_select"])
p.circle(x='coordsX',y='coordsY',source=source)
#p.add_tile(CARTODBPOSITRON)
output_file('poly-bug.html')
show(p)
Running Bokeh 0.12.4 on Linux Mint / Ubuntu inside a virtualenv. Let me know if I need to provide further information.
This should be fixed but moving out to 0.12.7
This should be fixed as a part of #3412 (in PR #12083).