Session Ready
Exercise

Creating gridded layouts

Regular grids of Bokeh plots can be generated with gridplot.

In this example, you're going to display four plots of fertility vs female literacy for four regions: Latin America, Africa, Asia and Europe.

Your job is to create a list-of-lists for the four Bokeh plots that have been provided to you as p1, p2, p3 and p4. The list-of-lists defines the row and column placement of each plot.

Instructions
100 XP
  • Import gridplot from the bokeh.layouts module.
  • Create a list called row1 containing plots p1 and p2.
  • Create a list called row2 containing plots p3 and p4.
  • Create a gridplot using row1 and row2. You will have to pass in row1 and row2 in the form of a list.