title: GridSpec with shared axes in Python
body: <p><a href="https://stackoverflow.com/a/19627237/283296">This solution</a> to another thread suggests using <code>gridspec.GridSpec</code> instead of <code>plt.subplots</code>. However, when I share axes between subplots, I usually use a syntax like the following</p>
  
  <pre><code>  fig, axes = plt.subplots(N, 1, sharex='col', sharey=True, figsize=(3,18))
  </code></pre>
  
  <p>How can I specify <code>sharex</code> and <code>sharey</code> when I use <code>GridSpec</code> ?</p>