title: How to show date and time on x axis in matplotlib
body: <p>I would like to assign for x axis in matplotlib plot full date with time but with autoscale I could get only times or dates but not both. Following code:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import pandas as pd
  
  times = pd.date_range('2015-10-06', periods=500, freq='10min')
  
  fig, ax = plt.subplots(1)
  fig.autofmt_xdate()
  plt.plot(times, range(times.size))
  plt.show()
  </code></pre>
  
  <p>And on x axis I get only times without any dates so it's hard to distinct measurements. </p>
  
  <p>I think that it's some option in matplotlib in matplotlib.dates.AutoDateFormatter but I couldn't find any one that could allow me to change that autoscale.</p>
  
  <p><a href="https://i.stack.imgur.com/MvnvY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MvnvY.png" alt="enter image description here"></a></p>