5.6 Linking and Interactions
1. Linked Panning
x = list(range(11))
y0 = x
y1 = [xx*(-1) for xx in x]
y2 = [xx**2 for xx in x]# create a new plot
s1 = figure(plot_width=300, plot_height=300, title=None)
s1.circle(x, y0, size=20, color="forestgreen", alpha=0.5)# create a new plot and share both ranges
s2 = figure(plot_width=300, plot_height=300, x_range=s1.x_range, y_range=s1.y_range, title=None)
s2.diamond(x, y1, size=20, color="dodgerblue", alpha=0.5)
# create a new plot and share only one range
s3 = figure(plot_width=300, plot_height=300, x_range=s1.x_range, title=None)
s3.square(x, y2, size=20, color="orange", alpha=0.5)
p = gridplot([[s1, s2, s3]], toolbar_location=None)
show(p)
2. Linked Brushing

3. Linked Properties

4.Hiding Glyphs

Last updated