In this section, you will learn how to stack multiple plots vertically on top of each other to create a column-wise comparison of plots. We will be using the two scatter plots that we created earlier in the chapter to achieve this.
In order to create a vertical layout of plots, we use the code shown here:
#Import the required packages
from bokeh.layouts import column
from bokeh.io import output_file, show
#Group the 2 plots into a 'column' layout
col_layout = column(plot1,plot2)
#Output the plot
output_file('vertical.html')
show(col_layout)
This results in a layout of plots, as illustrated here:
Plots 1 and 2 in a vertical layout
In the previous code, we used the column function, which takes in the plots that we want to stack vertically on top of each other as input arguments to create the vertical layout of plots. This...