Matplotlib’s plt.subplots() gives you fundamental subplot functionality for uniformly distributed subplots. This is not enough for some plotting tasks and we need something better.

Subplot arrangement using subplots

Subplot arrangement using subplots

Subplot arrangement using subplots2grid