title: Shared axis with gridspec subplots
body: <p>I'm using nested <code>GridSpecFromSubplotSpec</code> to create a nested grid of axes. I have two independent set of axes, a top one and a bottom one. Each set has four axes, arranged in a 2x2 grid.</p>
  
  <p>Here is the code I'm using and the result I obtain:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  import matplotlib.gridspec as gsp
  
  fig = plt.figure()
  global_gsp = gsp.GridSpec(2, 1)
  
  for i in range(2):
      axes = np.empty(shape=(2, 2), dtype=object)
      local_gsp = gsp.GridSpecFromSubplotSpec(2, 2, subplot_spec=global_gsp[i])
  
      for j in range(2):
          for k in range(2):
              ax = plt.Subplot(fig, local_gsp[j, k],
                               sharex=axes[0, 0], sharey=axes[0, 0])
              fig.add_subplot(ax)
              axes[j, k] = ax
  
      for j in range(2):
          for k in range(2):
              ax = axes[j, k]
              x = i + np.r_[0:1:11j]
              y = 10*i + np.random.random(11)
              ax.plot(x, y, color=f'C{i}')
              ax.set_xlabel('x')
              ax.set_ylabel('y')
  
  
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xAXov.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xAXov.png" alt="Resulting figure"></a></p>
  
  <p>As you can see, the top set has blue lines, the bottom set has orange lines, and the blue lines are well represented with the limits <code>[0, 1]x[0, 1]</code>, while the orange lines are represented with the limits <code>[1, 2]x[10, 11]</code>. When I create the subplots with <code>plt.Subplot</code>, I use the <code>sharex</code> and <code>sharey</code> arguments to have exactly the same scale on all four axes in each set (but different scale across different sets).</p>
  
  <p>I would like to <strong>aviod the repetition of the label and the ticks of each axis</strong>. How can I achieve that?</p>