Exercise: Subplots

Solve a programming challenge on subplots in Python.

We'll cover the following

Challenge

Write Python code to make four subplots on a 3×33\times3 matrix inside a figure. The details of all four figures are as follows:

  • Plot 1: 3D surface plot on rows 1 and 2 and columns 1 and 2

  • Plot 2: Polar plot on row 1 and column 3

  • Plot 3: Horizontal bar plot on row 2 and column 3

  • Plot 4: 2D scatter plot on row 3 and columns 1, 2, and 3

The visual representation of the final figure is shown below.

Get hands-on with 1200+ tech skills courses.