title: When dates are on the x axis, how do i set the x axis intervals to months?
body: <p>Hi i have 2 arrays which are on the lines of:</p>
  
  <pre><code>array1 = [datetime.date(2014, 3, 3), datetime.date(2014, 2, 19), datetime.date(2014, 7, 13), datetime.date(2014, 5, 11), datetime.date(2014, 6, 13), datetime.date(2014, 1, 20)]
  
  array2 = 1,5,8,9,4,6
  </code></pre>
  
  <p>Here is the code i have to plot the 2 arrays:</p>
  
  <pre><code>plt.plot_date((aray1), (array2), 'ro')
  plt.xticks(rotation=45)
  plt.xlabel('Date', fontsize=12)
  plt.ylabel('Quantity', fontsize=12)
  plt.savefig('plot4.png')  
  </code></pre>
  
  <p>My arrays are a lot bigger than the ones above, so my dates are squashed together and dont fit on the x axis. So, How do i set the x axis intervals to months, so the dates im plotting can slot into the correct month?</p>