<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6905106" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/1918" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/1918/hovercard" href="https://github.com/pandas-dev/pandas/issues/1918">#1918</a></p>
<hr>
<p dir="auto">Basically the problem is if you want to do a bar plot with time series</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df.plot(kind='bar')
"><pre class="notranslate"><code class="notranslate">df.plot(kind='bar')

</code></pre></div>
<p dir="auto">it will create a label for every date entry instead one clean label and more dates when you zoom in.</p>
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="24774891" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/5774" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/5774/hovercard" href="https://github.com/pandas-dev/pandas/issues/5774">#5774</a></p>
<p dir="auto">When time series is set as index, line plot uses the TimeSeries_DateFormatter for recognizable date formatting. However, bar plot use the FixedFormatter which outputs the datetime as it is. Can bar plot also use the DateFormatter?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: from pandas import *
In [2]: from numpy.random import *
In [3]: ts = Series(randn(100), index=date_range('1/1/2000', periods=100))
In [4]: df = DataFrame(randn(100, 4), index=ts.index, columns=['A', 'B', 'C', 'D'])
In [5]: df = df.cumsum()

In [7]: a = df.plot(kind='bar')
In [9]: a.get_xaxis().get_major_formatter()
Out[9]: &lt;matplotlib.ticker.FixedFormatter instance at 0x108700f38&gt;

In [11]: a = df.plot()
In [12]: a.get_xaxis().get_major_formatter()
Out[12]: &lt;pandas.tseries.converter.TimeSeries_DateFormatter instance at 0x10877ccf8&gt;"><pre class="notranslate"><code class="notranslate">In [1]: from pandas import *
In [2]: from numpy.random import *
In [3]: ts = Series(randn(100), index=date_range('1/1/2000', periods=100))
In [4]: df = DataFrame(randn(100, 4), index=ts.index, columns=['A', 'B', 'C', 'D'])
In [5]: df = df.cumsum()

In [7]: a = df.plot(kind='bar')
In [9]: a.get_xaxis().get_major_formatter()
Out[9]: &lt;matplotlib.ticker.FixedFormatter instance at 0x108700f38&gt;

In [11]: a = df.plot()
In [12]: a.get_xaxis().get_major_formatter()
Out[12]: &lt;pandas.tseries.converter.TimeSeries_DateFormatter instance at 0x10877ccf8&gt;
</code></pre></div>