title: how to adjust x axis in matplotlib
body: <p>I have a graph like this<img src="https://i.stack.imgur.com/nbT3r.png" alt="enter image description here"></p>
  
  <p>The data on the x axis means hours, so I want the x axis to set as 0, 24, 48, 72.....instead of the value now, which is difficult to see the data between [0,100]</p>
  
  <pre><code>fig1 = plt.figure()  
  ax = fig1.add_subplot(111)
  ax.set_yscale('log')
  ax.plot(x,y,'b-')
  </code></pre>
  
  <p>According to the the first answer, I got this:
  <img src="https://i.stack.imgur.com/A1pz1.png" alt="enter image description here"></p>