I am trying to plot multiple sublpots using the following code
import matplotlib.pyplot as plt
from matplotlib import image
fig, ax = plt.subplots(nrows=10, ncols=3,squeeze= False, figsize = (40, 40))
i = 0
for row in ax:
for col in row:
img = image.imread("black.png")
i = i+1
col.axis("off")
col.set_title("group_", fontsize = 20)
col.imshow(img) # consider I,m plottinf some image
When I'm plotting fewer subplots the subplots are very close together
However When I'm plotting more subplots there is a considerable gap between horizontal subplots.
Let me know how can I plot such that the plots are close to each other
Note: This may look like duplicate but I was not able to find a solution by browsing stackoverflow to fix this issue