title: saving multiple figures to one pdf-four figures per page
body: <p>hello friends im new to matplotlib and im trying to save X numbers of figures to one PDF Page that will represent 4 figures in one page</p>
  
  <p>now i save each figure that i have to one PDF File but each figure in one page and i want 4 figures in one page</p>
  
  <p>will love your help on it</p>
  
  <p>NOTE-self.my_exercises is a list of exercises and each exercise in it has date and weight that i plot </p>
  
  <p>here is my code so far</p>
  
  <pre><code>def plot_exercise(self):
      pdf = matplotlib.backends.backend_pdf.PdfPages("FullReport.pdf")
  
      for exercise in self.my_exercises:
          fig, ax = plt.subplots()
          plt.plot(self.my_exercises[exercise].get_dates(), self.my_exercises[exercise].get_weights(), zorder=1)
          plt.scatter(self.my_exercises[exercise].get_dates(), self.my_exercises[exercise].get_weights(), s=10,
                      color='red', zorder=2)
          plt.suptitle(exercise[::-1])
          plt.setp(ax.xaxis.get_majorticklabels(), rotation=90, ha="right")
          plt.gcf().subplots_adjust(bottom=0.20)
          #fig.show()
          figures.append(fig)
          pdf.savefig(fig)
      pdf.close()
  </code></pre>
  
  <p>I tried some of the codes here in StackOverflow but none of them that i have found could help my situation</p>