A grid layout combines the row, column, and nested layouts, and allows you to create plots horizontally, vertically, or both horizontally and vertically. Using the grid layout is much more robust because of the versatility of combinations that the layout offers in terms of stacking multiple plots together in a single screen.
In order to construct a grid layout, we will use the same three plots that we have been working on in the previous sections.
We can create a nested grid layout using the code shown here:
#Import required packages
from bokeh.io import output_file, show
from bokeh.layouts import gridplot
#Create the grid layout
grid_layout = gridplot([plot1, plot2], [plot3, None])
#Output the plot
output_file('grid.html')
show(grid_layout)
This results in a grid layout as illustrated here:
Creating a nested layout using the grid layout
In...