I am using Google Colab and when I try to draw a graph it comes like this
But I have to plot many graphs, so i used a for loop

I expected the graphs to be the same size as in the first image but I got all graphs in compressed form. What should I do to obtain the graphs as the same size as in first image using a for loop.
figsizewhich will only get you so far if you have a limited area for your plot, play around withnrowsandncolsparameters ofplt.subplots, as in the flagged question