August 2017
Beginner to intermediate
334 pages
8h 22m
English
When we want to group plots of different dimensions, pyplot.subplot2grid proves useful by allowing a subplot to span across multiple rows and columns:
ax1 = plt.subplot2grid((3, 3), (0, 0))ax2 = plt.subplot2grid((3, 3), (1, 0))ax3 = plt.subplot2grid((3, 3), (0, 2), rowspan=3)ax4 = plt.subplot2grid((3, 3), (2, 0), colspan=2)ax5 = plt.subplot2grid((3, 3), (0, 1), rowspan=2)

Read now
Unlock full access