title: Changing x-axis tick labels when working with subplots
body: <p>I am plotting multiple boxplots on a single figure using matplotlib following the example here:<br>
   <a href="http://matplotlib.org/examples/pylab_examples/subplots_demo.html" rel="noreferrer">http://matplotlib.org/examples/pylab_examples/subplots_demo.html</a>  </p>
  
  <p>Everything is working as expected, but I can't figure out how to change the tick labels on the x-axis. I have four data series, which are plotting, but the x-axis ticks are labelled '1, 2, 3, 4' where I would like to assign text to these values.</p>
  
  <p>My code for the plotting looks like this:</p>
  
  <pre><code>f, axarr = plt.subplots(2, sharex=True)
  axarr[0].boxplot(WS_Bias, whis = 100)
  #axarr[0].xticks(range(1, len(Labels)+1),Labels)
  axarr[0].axhspan(-0.5, 0.5, facecolor='c', alpha = 0.2)
  
  axarr[1].boxplot(WS_RMS, whis = 100)
  #axarr[1].xticks(range(1, len(Labels)+1),Labels)
  axarr[1].axhspan(0, 2, facecolor='c', alpha = 0.2)
  
  pl.show()
  </code></pre>
  
  <p>The commented out lines worked to change the labels when I was dealing with only one dataset but this command is not recognized with the methods I'm using. Pyplot is imported as plt.</p>