How can I make a barplot and a lineplot in the same seaborn plot with different Y axes nicely?
<p>I have two different sets of data with a common index, and I want to represent the first one as a barplot and the second one as a lineplot in the same graph. My current approach is similar to the following.</p>

<pre><code>ax = pt.a.plot(alpha = .75, kind = 'bar')
ax2 = ax.twinx()
ax2.plot(ax.get_xticks(), pt.b.values, alpha = .75, color = 'r')
</code></pre>

<p>And the result is similar to this</p>

<p><a href="https://i.stack.imgur.com/KgYEP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KgYEP.png" alt="A barplot and lineplot of the same data"></a></p>

<p>This image is really nice and <em>almost</em> right. My only problem is that <code>ax.twinx()</code> seems to create a new canvas on top of the previous one, and the white lines are clearly seen on top of the barplot.</p>

<p>Is there any way to plot this without including the white lines?</p>