is_sub_plot_display = False
def hide_display_plot(source=source, ts1=ts1, ts2 = ts2):
global is_sub_plot_display
if is_sub_plot_display == False:
ts2.background_fill_color = ts1.background_fill_color
is_sub_plot_display = True
elif is_sub_plot_display == True:
ts2.background_fill_color = “white”
is_sub_plot_display = False
else:
ts2.background_fill_color = “yellow”
taptool.callback = CustomJS.from_py_func(hide_display_plot)
``
Can anyone show their talent and let me know why if condition does not work when I call tap callback. thanks a lot

