title: How to export a PDF with figures on multiple pages?
body: <p>I am trying to export a larger number of Matlab figures that are generated in for loop to a single PDF file. Right now the best thing I could come up with is to all print them to a PostScrip file using the <code>-append</code> option like this:</p>
  
  <pre><code>print('Temp_Plots','-dpsc','-append')
  </code></pre>
  
  <p>After that I could convert the PS file to a PDF file. This workflow was okay until I started to use plots with 2 y axis. Unfortunately it seems like Matlab's PS export cannot properly handle this situation and does not color the lines appropriately.</p>
  
  <p>As there is no <code>-append</code> option for the direct PDF export what other methods do I have to append all my plots to a single file without losing the assigned colors or other hickups?</p>