title: how to perform subplot in loop for seaborn charts
body: <p>I have code that generates four subplots, but i want to generate those charts through loops , Currently i am following this piece of code to generate the chart
  Code:</p>
  
  <pre><code>plt.figure(figsize=(20, 12))
  plt.subplot(221)
  sns.barplot(x = 'Category', y = 'POG_Added', data = df)
  xticks(rotation = 90)
  plt.xticks(size = 11)
  plt.yticks(size = 11)
  plt.xlabel("Category",size = 13)
  plt.ylabel("POG_Added",size = 13)
  
  plt.subplot(222)
  sns.barplot(x = 'Category', y = 'Live_POG', data = df)
  xticks(rotation = 90)
  plt.xticks(size = 11)
  plt.yticks(size = 11)
  plt.xlabel("Category",size = 13)
  plt.ylabel("Live_POG",size = 13)
  
  plt.subplot(223)
  sns.lineplot(x = 'Category', y = 'D01_CVR', data = df)
  #sns.barplot(x = 'Category', y = 'D2-08-Visits', data = df,label='D2-08_Visits')
  xticks(rotation = 90)
  plt.xticks(size = 11)
  plt.yticks(size = 11)
  plt.xlabel("Category",size = 13)
  plt.ylabel("D01_CVR",size = 13)
  
  plt.subplot(224)
  
  plt.xticks(rotation='vertical')
  ax = sns.barplot(x='Category',y='D2-08-Units',data=df)
  ax2 = ax.twinx()
  ax2.plot(ax.get_xticks(), df["D01_CVR"], alpha = .75, color = 'r')
  
  plt.subplots_adjust(hspace=0.55,wspace=0.55)
  plt.show()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ZnIJA.png" alt="enter image description here"></p>