title: Why set_xticks doesn't set the labels of ticks?
body: <pre><code>import matplotlib.pyplot as plt
  
  x = range(1, 7)
  y = (220, 300, 300, 290, 320, 315)
  
  def test(axes):
      axes.bar(x, y)
      axes.set_xticks(x, [i+100 for i in x])
  
  fig, (ax1, ax2) = plt.subplots(1, 2)
  test(ax1)
  test(ax2)
  </code></pre>
  <p><img src="https://i.stack.imgur.com/Vagh2.png" alt="enter image description here" /></p>
  <p>I am expecting the xlabs as <code>101, 102 ...</code>
  However, if i switch to use <code>plt.xticks(x, [i+100 for i in x])</code> and rewrite the function explicitly, it works.</p>