<p dir="auto">In the following, the <code class="notranslate">hue</code> has no effect (seaborn 0.11.1 as well as current master)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tips = sns.load_dataset(&quot;tips&quot;)
sns.boxplot(data=tips, y='tip', hue='smoker')"><pre class="notranslate"><span class="pl-s1">tips</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"tips"</span>)
<span class="pl-s1">sns</span>.<span class="pl-en">boxplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">tips</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'tip'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">'smoker'</span>)</pre></div>
<p dir="auto">It takes effect if something like <code class="notranslate">x='sex'</code> is added.</p>
<p dir="auto">Thanks for creating a great package.</p>
<h1 dir="auto">Problem</h1>
<p dir="auto">When only <code class="notranslate">y</code> is specified to <code class="notranslate">violinplot</code> it does not consider the argument to <code class="notranslate">hue</code>.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tips = sns.load_dataset(&quot;tips&quot;)
sns.violinplot(data=tips, y='total_bill', hue='smoker')"><pre class="notranslate"><span class="pl-s1">tips</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"tips"</span>)
<span class="pl-s1">sns</span>.<span class="pl-en">violinplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">tips</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'total_bill'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">'smoker'</span>)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14995334/97690861-daebb480-1a9d-11eb-9681-f943e401bc0b.png"><img src="https://user-images.githubusercontent.com/14995334/97690861-daebb480-1a9d-11eb-9681-f943e401bc0b.png" alt="bilde" style="max-width: 100%;"></a></p>
<h1 dir="auto">Expected</h1>
<p dir="auto">There should be created two plots, one where smoker is <code class="notranslate">yes</code> and one where smoker is <code class="notranslate">no</code>.</p>
<h1 dir="auto">Example when <code class="notranslate">x</code> is specified</h1>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tips = sns.load_dataset(&quot;tips&quot;)
sns.violinplot(data=tips, x='day', y='total_bill', hue='smoker')"><pre class="notranslate"><span class="pl-s1">tips</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"tips"</span>)
<span class="pl-s1">sns</span>.<span class="pl-en">violinplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">tips</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'day'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'total_bill'</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">'smoker'</span>)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14995334/97691032-1c7c5f80-1a9e-11eb-9c12-43a710a4901f.png"><img src="https://user-images.githubusercontent.com/14995334/97691032-1c7c5f80-1a9e-11eb-9c12-43a710a4901f.png" alt="bilde" style="max-width: 100%;"></a></p>