title: Combine (overlay) two factorplots in matplotlib
body: <p>I need to add <code>swarmplot</code> to <code>boxplot</code> in matplotlib, but I don't know how to do it with <code>factorplot</code>. I think I can iterate with subplots, but I would like to learn how to do it with seaborn and factorplot.</p>
  <p>A simple <a href="https://seaborn.pydata.org/generated/seaborn.swarmplot.html" rel="nofollow noreferrer">example</a> (plotting by using the same axis <code>ax</code>):</p>
  <pre><code>import seaborn as sns
  tips = sns.load_dataset(&quot;tips&quot;)
  ax = sns.boxplot(x=&quot;tip&quot;, y=&quot;day&quot;, data=tips, whis=np.inf)
  ax = sns.swarmplot(x=&quot;tip&quot;, y=&quot;day&quot;, data=tips, color=&quot;.2&quot;)
  </code></pre>
  <p>The result: <a href="https://i.stack.imgur.com/noX98.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/noX98.png" alt="enter image description here" /></a></p>
  <p>In my case, I need to overlay the swarm factorplot:</p>
  <pre><code>g = sns.factorplot(x=&quot;sex&quot;, y=&quot;total_bill&quot;,
                        hue=&quot;smoker&quot;, col=&quot;time&quot;,
                        data=tips, kind=&quot;swarm&quot;,
                        size=4, aspect=.7);
  </code></pre>
  <p>and <strong>boxplot</strong></p>
  <p>I can't figure out how to use axes (extract from <code>g</code>)?</p>
  <p>Something like:</p>
  <pre><code>g = sns.factorplot(x=&quot;sex&quot;, y=&quot;total_bill&quot;,
                            hue=&quot;smoker&quot;, col=&quot;time&quot;,
                            data=tips, kind=&quot;box&quot;,
                            size=4, aspect=.7);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ktjeq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ktjeq.png" alt="enter image description here" /></a></p>
  <p>I want something like this, but with <code>factorplot</code> and <code>boxplot</code> instead of <code>violinplot</code></p>
  <p><a href="https://i.stack.imgur.com/KaHBi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KaHBi.png" alt="enter image description here" /></a></p>