title: matplotlib subplots with same 'settings'
body: <p>I'm plotting the same data in two different formats: log scale and linear scale.</p>
  
  <p>Basically I want to have exactly the same plot, but with different scales, one on the top of the other.</p>
  
  <p>What I have right now is this:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  # These are the plot 'settings'
  plt.xlabel('Size')
  plt.ylabel('Time(s)');
  plt.title('Matrix multiplication')
  
  plt.xticks(xl, rotation=30, size='small')
  plt.grid(True)
  
  # Settings are ignored when using two subplots
  
  plt.subplot(211)
  plt.plot(xl, serial_full, 'r--')
  plt.plot(xl, acc, 'bs')
  plt.plot(xl, cublas, 'g^')
  
  plt.subplot(212)
  plt.yscale('log')
  plt.plot(xl, serial_full, 'r--')
  plt.plot(xl, acc, 'bs')
  plt.plot(xl, cublas, 'g^')
  </code></pre>
  
  <p>All 'settings' before <em>plt.subplot</em> are ignored.</p>
  
  <p>I can get this to work the way I want, but I have to duplicate all the settings after each subplot declaration.</p>
  
  <p>Is there a way to do configure both subplots at once?</p>