title: How to set X-axis limit for years in a matplotlib graph
body: <p>i have a plot as below:    </p>
  
  <pre><code>%matplotlib inline
  import matplotlib.pyplot as plt
  
  df[['Year','Unemployment with primary education (% of total 
  unemployment)','Unemployment with secondary education (% of total 
  unemployment)','Unemployment with tertiary education (% of total 
  unemployment)']].set_index('Year').plot()
  
  plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gXbQq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gXbQq.png" alt="enter image description here"></a></p>
  
  <p>I would like to limit the x-axis upto 2005 only. How can i do that?</p>