Dear Colleagues
this is a question about brushing, e.g. as illustrated code such as the below (from your docs).
When a dot is selected in one figure (e.g. left), all other dots remain visible, but are diminished in intensity. I’m not sure how this is effected under the hood; maybe alpha is changed.
I have use case in which when a dot is selected, the users would like all other dots to disappear completely, until the ‘reset’ Tool is pressed.
The real use case involves selecting the details of an individual from a Grid; a linked plot displays various properties of this indiividual; on selection, the users want all the dots belonging to all the other individuals to disappear, not to be grayed out.
i) is this possible when the dots (as below) are displayed on a figure
ii) is it possible when the dots are plotted on a GMapPlot, e.g. as in your example here: Mapping geo data — Bokeh 2.4.2 Documentation
Thank you
David
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure, gridplot, output_file, show
output_file("brushing.html")
x = list(range(-20, 21))
y0 = [abs(xx) for xx in x]
y1 = [xx**2 for xx in x]
# create a column data source for the plots to share
source = ColumnDataSource(data=dict(x=x, y0=y0, y1=y1))
TOOLS = "box_select,lasso_select,help"
# create a new plot and add a renderer
left = figure(tools=TOOLS, width=300, height=300, title=None)
left.circle('x', 'y0', source=source)
# create another new plot and add a renderer
right = figure(tools=TOOLS, width=300, height=300, title=None)
right.circle('x', 'y1', source=source)
p = gridplot([[left, right]])
show(p)