title: Customize x-axis in matplotlib
body: <p>In the figure below, each unit in the x-axis represents a 10mins interval. I would like to customize the labels of x-axis, so that it shows hours, i.e. it displays a ticker every 6 units (60mins). I am new to matplotlib. Could someone help me? Thanks~
  <img src="https://i.stack.imgur.com/p0UGC.png" alt="enter image description here"></p>
  
  <p>Here is the code for the above figure.</p>
  
  <pre><code>x = arange(0, size_x, dx)
  y = arange(0, size_y, dy)
  X,Y = meshgrid(x, y)
  Z = foo(x,y)
  pcolor(X, Y, Z, cmap=cm.Reds)
  colorbar()
  axis([0,size_x-1,0,size_y-1])
  show()
  </code></pre>