0

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)
123456
  • 125
  • 7
  • Does this answer your question? [Matplotlib different size subplots](https://stackoverflow.com/questions/10388462/matplotlib-different-size-subplots) – Ynjxsjmh May 18 '22 at 18:45

0 Answers0