How To Plot Multiple Histograms On Same Plot With Seaborn
<p>With matplotlib, I can make a histogram with two datasets on one plot (one next to the other, not overlay).</p>

<pre><code>import matplotlib.pyplot as plt
import random

x = [random.randrange(100) for i in range(100)]
y = [random.randrange(100) for i in range(100)]
plt.hist([x, y])
plt.show()
</code></pre>

<p>This yields the following plot. </p>

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

<p>However, when I try to do this with seabron;</p>

<pre><code>import seaborn as sns
sns.distplot([x, y])
</code></pre>

<p>I get the following error:</p>

<pre><code>ValueError: color kwarg must have one color per dataset
</code></pre>

<p>So then I try to add some color values:</p>

<pre><code>sns.distplot([x, y], color=['r', 'b'])
</code></pre>

<p>And I get the same error. I saw <a href="https://stackoverflow.com/questions/32899463/how-can-i-overlay-two-graphs-in-seaborn">this post</a> on how to overlay graphs, but I would like these histograms to be side by side, not overlay. </p>

<p>And looking at the <a href="https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.distplot.html#seaborn.distplot" rel="noreferrer">docs</a> it doesn't specify how to include a list of lists as the first argument 'a'.</p>

<p>How can I achieve this style of histogram using seaborn?</p>