title: matplotlib auto generates dates in my x-axis
body: <p>I have a DataFrame that consist of 2 columns</p>
  <pre><code>Transaction Week | Completed 
  2021-01-10       | 63 
  2021-01-17       | 76
  2021-01-24       | 63 
  2021-01-31       | 20
  </code></pre>
  <p>I cannot understand why after I plot the graph, my x-axis has more than 4 dates (My DataFrame only has 4 entries). How can I remove those dates?</p>
  <pre><code>x=Weekly_Settled_Trans_Status['Transaction Week']
  y=Weekly_Settled_Trans_Status['Completed']
  plt.plot(x,y)
  plt.tick_params('x', labelrotation=45)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ihe5R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ihe5R.png" alt="Screenshot" /></a></p>