title: How do I control the number of x-axis ticks?
body: <p>I have pulled in a dataset that I want to use, with columns named <code>Date</code> and <code>Adjusted</code>. Adjusted is just the adjusted percentage growth on the base month.</p>
  
  <p>The code I currently have is:</p>
  
  <pre><code>x = data['Date']
  y = data['Adjusted']
  
  fig = plt.figure(dpi=128, figsize=(7,3))
  plt.plot(x,y)
  
  plt.title("FTSE 100 Growth", fontsize=25)
  plt.xlabel("Date", fontsize=14)
  plt.ylabel("Adjusted %", fontsize=14)
  plt.show()
  </code></pre>
  
  <p>However, when I run it I get essentially a solid black line across the bottom where all of the dates are covering each other up. It is trying to show every single date, when obviously I only want to show major ones. That dates are in the format Apr-19, and the data runs from Oct-03 to May-20.</p>
  
  <p>How do I limit the number of date ticks and labels to one per year, or any amount I choose? If you do have a solution, if you could respond with the edits made to the code itself that would be great. I've tried other solutions I've found on here but I haven't been able to get it to work.</p>