title: Avoiding repeated legend in seaborn boxplot overlaid by swarmplot
body: <p><a href="https://i.stack.imgur.com/G1Es7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G1Es7.png" alt="enter image description here" /></a></p>
  <p>In the seaborn based plot below, I am making a box plot overlaid by a swarm plot. Both are subset by hue. Is there any way I can not have them repeated twice in the legend though?</p>
  <p>Here is my code:</p>
  <pre><code>ax = sns.boxplot(x=name_xaxis, y=name_col, hue=hue, data=frame, palette='Set2', linewidth=1.5, width=0.5)
  sns.swarmplot(x=name_xaxis, y=name_col, hue=hue, data=frame, palette='Set2', color='.25', split=True)
  </code></pre>