Fullscreen tool in gridplots

Consider the following gridplot with two subplots

from bokeh.plotting import figure
from bokeh.layouts import gridplot

plot1 = figure(width=400, height=400, title=“Plot 1”,tools=[“fullscreen”])
plot1.circle([1, 2, 3], [4, 5, 6], size=10, color=“navy”, alpha=0.5)

plot2 = figure(width=400, height=400, title=“Plot 2”)
plot2.square([1, 2, 3], [6, 5, 4], size=10, color=“green”, alpha=0.5)

grid = gridplot([[plot1, plot2]],merge_tools=False,toolbar_location=None)

here each subplot has its own toolbar, and when clicking the first subplot fullscreen tool only that subplot gets put in fullscreen.
When the tools are merged like below:

grid = gridplot([[plot1, plot2]])

when clicking the fullscreen tool it looks like this:

Is there a way that I could merge tools EXCEPT for the fullscreen tool? Either by having each subplot fullscreen tool in the shared toolbar, or by having each subplot with a toolbar that has its own fullscreen tool (while other shared tools are in the gridplot toolbar) ?

Thank you !

It seems I can simply set all the toolbar_location of the gridplot children to be not None and they will all display their toolbar with the fullscreen tool working for each individual subplot. That does what I want although that now displays all the tools that are shared for each subplot.

There’s not currently any way to selectively merge toolbar tools that I am aware of.

1 Like