title: How to set xlabel values in matplotlib?
body: <p>I want to plot a histogram of electrical resistivity values ranging from 0 to 1200, spaced out around 200 units between. I have my values saved in a file on my laptop; there are 1600 measurements each of which can be any number in that range. However, when I try to create a histogram from that list of values, the x-axis labels takes on every value in that list <a href="https://i.stack.imgur.com/MeIf6.png" rel="nofollow noreferrer">How it looks</a>, rather than 0 - 200 - 400 - 600 - 800 - 1000 - 1200, as I want. <a href="https://i.stack.imgur.com/Vn0Xu.png" rel="nofollow noreferrer">How I would like it to look </a>. In short, how do I change the xlabel to go from 1600 individual values to 0 - 200 - 400 - 600 - 800 - 1000 - 1200?</p>
  <p>I hope you can see the images - I'm not allowed to post them directly. If not, I hope that my explanation was relatively clear. Thanks!</p>
  <p>Thanks so far but plt.xticks(ticks=[0, 200, 400, 600, 800, 1000, 1200]) doesn't quite work: <a href="https://i.stack.imgur.com/fAYqj.png" rel="nofollow noreferrer">enter image description here</a></p>