title: Adjust Datetime column on x-axis of matplotlib in time series dataset
body: <p>I'm working with time-series dataset, this dataset has a <code>timestemp</code> column which I set as the index column of the dataset, it has the vale of date and time also in the form as:
  <code>15/5/17 7:51</code> so when I display a plot the date and time on x-axis make this this graph very difficult to understand.</p>
  
  <p>Here's what I have tried to adjust the date and time on x-axis:</p>
  
  <pre><code>fig, ax = plt.subplots(figsize=(17, 4))
  ax.plot(data,
          '-o',
          color='purple')
  ax.set(xlabel="Date",
         title="Blood gclucose and heart rate distribution")
  
  # Format the x axis
  ax.xaxis.set_major_locator(mdates.WeekdayLocator(interval=0))
  ax.xaxis.set_major_formatter(DateFormatter("%m/%d"))
  
  plt.show()
  </code></pre>
  
  <p>But it's not displaying any date on the x-axis, what can be wrong? and what I can do to make this datetime on x-axis more readable?</p>