title: How can I keep figure size constant with matplotlib although using pyplot.show()?
body: <p>Look at the following python example:</p>
  
  <pre><code>import matplotlib as mpl
  import matplotlib.pyplot as plt
  mpl.rcParams['figure.figsize'] = [8.27, 11.69]
  fig = plt.figure()
  plt.show() # This line causes problems with figsize
  fig.savefig('test.pdf')
  </code></pre>
  
  <p>If I use "plt.show()" the figure size of <strong>test.pdf</strong> changes a lot (from</p>
  
  <ul>
  <li>210 x 297 [mm] to</li>
  <li>213 x 250 [mm]</li>
  </ul>
  
  <p>What do I have to do in order to keep it constant?</p>