title: Setting the display range suplot of errorbars in matplotlib
body: <p>I'm trying to plot my data using matplot lib. I have 3 separetes sets of data I want to plot in 3 subplots (I'm using <a href="http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_demo.html" rel="noreferrer">this</a> is my guidence):</p>
  
  <pre><code>plt.figure()
  
  fig, axs = plt.subplots(nrows=3, ncols = 1, sharex=False)
  ax1 = axs[0]
  ax1.errorbar(X,Y,Err,fmt='o')
  ax1.set_xscale('log')
  ax1.set_yscale('log')
  ax1.set_title('epsilon=1.5, kappa = 2')
  plt.show()
  </code></pre>
  
  <p>However I get the x range from 1 (or 0, I'm not sure) to 100 and I want to reduce it. I tried <a href="https://stackoverflow.com/questions/7030807/setting-an-axis-in-matplotlib">this</a>, by adding using:</p>
  
  <pre><code>ax1.xlim(0.5,13.5)
  </code></pre>
  
  <p>But I get an error:</p>
  
  <blockquote>
    <p>AttributeError: 'AxesSubplot' object has no attribute 'xlim'</p>
  </blockquote>
  
  <p>How can I change the range then?</p>