Session Ready
Exercise

Creating columns of plots

In this exercise, you're going to use the column() function to create a single column layout of the two plots you created in the previous exercise.

Figure p1 has been created for you.

In this exercise and the ones to follow, you may have to scroll down to view the lower portion of the figure.

Instructions
100 XP
  • Import column from the bokeh.layouts module.
  • The figure p1 has been created for you. Create a new figure p2 with an x-axis label of 'population' and y-axis label of 'female_literacy (% population)'.
  • Add a circle glyph to the figure p2.
  • Put p1 and p2 into a vertical layout using column().
  • Click 'Submit Answer' to output the file and show the figure.