Two seaborn distplots one same axis
<p>I am trying to figure a nice way to plot two <a href="http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.distplot.html" rel="noreferrer">distplots (from seaborn)</a> on the same axis. It is not coming out as pretty as I want since the histogram bars are covering each other. And I don't want to use <code>countplot</code> or <code>barplot</code> simply because they don't look as pretty. Naturally if there is no other way I shall do it in that fashion, but <code>distplot</code> looks very good. But, as said, the bars are now covering each other (see pic).</p>

<p>Thus is there any way to fit two distplot frequency bars onto one bin so that they do not overlap? Or placing the counts on top of each other? Basically I want to do this in seaborn:</p>

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

<p>Any ideas to clean it up are most welcome. Thanks.</p>

<p>MWE:</p>

<pre><code>sns.set_context("paper",font_scale=2)
sns.set_style("white")
rc('text', usetex=False)
fig, ax = plt.subplots(figsize=(7,7),sharey=True)
sns.despine(left=True)

mats=dict()
mats[0]=[1,1,1,1,1,2,3,3,2,3,3,3,3,3]
mats[1]=[3,3,3,3,3,4,4,4,5,6,1,1,2,3,4,5,5,5]
N=max(max(set(mats[0])),max(set(mats[1])))

binsize = np.arange(0,N+1,1)
B=['Thing1','Thing2']
for i in range(len(B)):
    ax = sns.distplot(mats[i],
                      kde=False,
                      label=B[i],
                      bins=binsize)

ax.set_xlabel('My label')
ax.get_yaxis().set_visible(False)
ax.legend()
plt.show()
</code></pre>

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