title: How to make matplotlib show all x coordinates?
body: <p>For example in the following code:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  N = 10
  x = [1,2,3,4,5,6,7,8,9,10]
  y = np.random.rand(N)
  
  plt.scatter(x, y)
  plt.show()
  </code></pre>
  
  <p>I get the following plot</p>
  
  <p><img src="https://i.stack.imgur.com/ayvse.png" alt="enter image description here"></p>
  
  <p>as you can see, in the x axis only the even values appear. How to force matplotlib to show all values, that is 1 2 3 4 5 6 7 8 9 10?</p>