'Matplotlib: How to create different number of rows for each column in plt.subplots?

If I want to create a subplot with 3 rows in the 1st column and 2 rows in the 2nd column with plt.subplots, is that possible?

I know I can do so using fig.add_subplot or plt.subplot

import matplotlib.pyplot as plt

plt.figure(figsize=(8,8))
plt.subplot(3,2,1)
plt.subplot(3,2,3)
plt.subplot(3,2,5)
plt.subplot(2,2,2)
plt.subplot(2,2,4)

enter image description here

Desired Output as above image

When I try using plt.subplots, like the below. I get ValueError

import matplotlib.pyplot as plt
fig1, axs = plt.subplots([3,2],2)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source