Use subplot mosaic to fine control subplots in matplotlib
We can always create matplotlib subplots by using subplots in matplotlib. Below is an example to create a subplot of 3 rows and 2 colums. import numpy as np import pandas as pd import matplotlib.pyplot as plt fig, ax = plt.subplots(3,2,layout='tight') However there are times when we need fine control of subplots. This is when subplot_mosaic comes in to play. We can create any possible layout using mosaic. Below are some of the examples....