title: Pylab - Adjust hspace for some of the subplots
body: <p>I have a plot in which I want to have one panel separate from other four panels. I want the rest of the four panels to share the x axis. The figure is shown below. I want the bottom four panels to have shared x-axis. I tried</p>
  
  <pre><code>f = plt.figure()
  ax6=f.add_subplot(511)
  ax4=f.add_subplot(515)
  ax1=f.add_subplot(512,sharex=ax4)
  ax2=f.add_subplot(513,sharex=ax4)
  ax3=f.add_subplot(514,sharex=ax4)
  </code></pre>
  
  <p>However, that does not work for me. The attached figure is made with </p>
  
  <pre><code>f = plt.figure()
  ax6=f.add_subplot(511)
  ax4=f.add_subplot(515)
  ax1=f.add_subplot(512)
  ax2=f.add_subplot(513)
  ax3=f.add_subplot(514)
  </code></pre>
  
  <p>and then setting the xticks to none by</p>
  
  <pre><code>ax1.get_xaxis().set_ticklabels([])
  ax2.get_xaxis().set_ticklabels([])
  ax3.get_xaxis().set_ticklabels([])
  </code></pre>
  
  <p>using f.subplots_adjust(hspace=0) joins all the subplots. Is there a way to join only the bottom four panels?</p>
  
  <p>Thanks!
  <img src="https://i.stack.imgur.com/przFw.png111" alt="enter image description here"></p>