title: MatPlotLib plots overlaying on one-another
body: <p>I'm trying to plot multiple separate figures and put them into a pdf (using FPDF if relevant). However, I'm facing an issue when it comes to generating these figures. I've been trying to plot them all and save them individually, however, the result ends up being like this:
  <a href="https://i.stack.imgur.com/fEpZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fEpZD.png" alt="Asset Chart plot (overlaying table plots)" /></a></p>
  <p>However, my first plot seems to be completely fine:
  <a href="https://i.stack.imgur.com/TBpU0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TBpU0.png" alt="Note that this is all fake data that I was testing with - nothing confidential" /></a></p>
  <p>Here's my current code:</p>
  <pre><code>pltAssets = plt
  
  pltAssets.axis('off')
  pltAssets.axis('tight')
  pltAssets.table(cellText=dfAssets.values, colLabels=dfAssets.columns, loc='center')
  pltAssets.savefig('FILES/assets.png', dpi=300)
  pltAssets.close()
  
  labels = &quot;Debt&quot;, &quot;Equity&quot;, &quot;Real Estate&quot;, &quot;Cash&quot;, &quot;Misc&quot;
  values = [10000, 10700, 1402, 101412, 31214]
  colors = [&quot;#ff6384&quot;, &quot;#36a2eb&quot;,&quot;#ff9f40&quot;,&quot;#9966ff&quot;, &quot;#36a832&quot;]
  plt.pie(values, labels=labels, colors=colors)
  plt.title(&quot;Asset Allocation&quot;)
  plt.savefig('FILES/asset_chart.png', dpi=300)
  plt.show()
  plt.close()
  
  #Note that this is only a section of the code, however, the rest is just a
  #variation of how I've done it here and is essentially irrelevent
  </code></pre>
  <p>Thank you so much for your help.
  [Note that this is all fake data that I was testing with - nothing confidential]</p>