pandas .plot() x-axis tick frequency -- how can I show more ticks? : <p>I am plotting time series using pandas .plot() and want to see every month shown as an x-tick. </p>

<p>Here is the dataset structure
<a href="https://i.stack.imgur.com/8OOw4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8OOw4.png" alt="data set"></a></p>

<p>Here is the result of the .plot()</p>

<p><a href="https://i.stack.imgur.com/qRwNo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qRwNo.png" alt="enter image description here"></a></p>

<p>I was trying to use examples from other posts and matplotlib <a href="http://matplotlib.org/examples/pylab_examples/date_demo2.html" rel="noreferrer">documentation</a> and do something like</p>

<pre><code>ax.xaxis.set_major_locator(
   dates.MonthLocator(revenue_pivot.index, bymonthday=1,interval=1))
</code></pre>

<p>But that removed all the ticks :(</p>

<p>I also tried to pass <code>xticks = df.index</code>, but it has not changed anything.</p>

<p>What would be the rigth way to show more ticks on x-axis?</p>
