title: Changing X-axis DateTime Intervals in Matplotlib
body: <p><a href="https://i.stack.imgur.com/cmXKx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cmXKx.jpg" alt="enter image description here"></a></p>
  
  <p>I browsed over stack overflow and found some matching questions, but I could not gather much from them. </p>
  
  <p>I have a dataset as shown in the image above. </p>
  
  <p>The dataset consists of Sales figures from Jan 1949 to Dec 1960. I want to plot the Date vs Sales graph. My code returned the following graph. <a href="https://i.stack.imgur.com/8Awjq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Awjq.jpg" alt="enter image description here"></a></p>
  
  <p>The X-axis shows only intervals of 2 years. I want the x-Axis to display at uniform intervals through the date range of Jan 1949 to Dec 1960 (as shown in the dataset above), rotated in a vertical format to accomodate more xticks. How can I do that?</p>