title: How do I plot with my axis label as time (in hrs, mins etc.)
body: <p>I'm using pylab in python to plot certain data. The data could range from a matter of a few minutes to hours, even days. I'd like to display it in a easy to understand format such as hours:mins, or days, hours:mins.</p>
  
  <p>How do I do that using Matplotlib or pyplot?</p>
  
  <p>Currently, I'm using time.time() as my time axis ticks. This is unintelligible to the ordinary person since it's a float that shows time passed since 1970 or so.</p>
  
  <pre><code>    currTime=time.time()
      pylab.xlim(startTime, currTime)
      #startTime comes from a data file
  </code></pre>
  
  <p>I'm aware how to get time in different formats, but I don't know how to set it to the axis since pylab.xlim() will only accept floats.</p>