title: Specify dates on x-axis plot from pandas dataframe
body: <p>I have this dataframe:</p>
  
  <pre><code>df.payout.head()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RtNEh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RtNEh.png" alt="enter image description here"></a></p>
  
  <p>I am trying to plot stacked bar chart from pandas dataframe. </p>
  
  <p>I want full date to be shown on X-axis label, though I only get only months if I use <code>grouped.index.month</code> or days for <code>grouped.index.days</code>: </p>
  
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  
  df.payout = pd.to_datetime(df.payout)
  
  grouped = df.groupby(pd.Grouper(key='payout', freq='M')).sum()
  grouped.plot(x=grouped.index.month, kind='bar', stacked=True)
  
  plt.show()
  </code></pre>
  
  <p>How do I get <code>payout</code> values in YYYY-MM-DD format on X-axis? </p>
  
  <p><a href="https://i.stack.imgur.com/cxENf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cxENf.png" alt="enter image description here"></a></p>