matplotlib plot bar and line charts together
<p>I want to plot bar and line together in one chart. When I plot bars, it displays correctly(g1 and g10 are displayed completed):<a href="https://i.stack.imgur.com/nbkwT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nbkwT.png" alt="enter image description here"></a></p>

<p>However, if I add a line to the plot:</p>

<pre><code>m1_t[['abnormal','fix','normal']].plot(kind='bar')
m1_t['bad_rate'].plot(secondary_y=True)
</code></pre>

<p>The bar chart is incomplete as below(g1 and g10 are chopped):
<a href="https://i.stack.imgur.com/CoHtw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CoHtw.png" alt="enter image description here"></a></p>

<p>Any idea how to fix this problem?</p>