Matplotlib: Plotting Subplots in a Loop

How to plot Matplotlib subplots in a loop using numpy’s ravel method or Matplotlib’s plt.subplot method