title: How to set minutes time as x-axis of a Matplotlib plot in Python?
body: <p>I'm trying to set minutes time as x-axis of matplotlib plot.The time period is from 8:30 to 15:00 everyday.I only need minutes time,don't need date.</p>
  
  <p>currently I only know how to set date as x-axis:</p>
  
  <pre><code>from datetime import datetime
  
  import matplotlib.dates as mdates
  import matplotlib.pyplot as plt
  
  dates = ['01/02/1991', '01/03/1991', '01/04/1991']
  xs = [datetime.strptime(d, '%m/%d/%Y').date() for d in dates]
  ys = range(len(xs))
  plt.gca().xaxis.set_major_formatter(mdates.DateFormatter('%m/%d/%Y'))
  plt.gca().xaxis.set_major_locator(mdates.DayLocator())
  # Plot
  plt.plot(xs, ys)
  plt.gcf().autofmt_xdate()  
  plt.show()
  </code></pre>
  
  <p>Any friend can help?</p>