title: Using seaborn displot I am unable to specify the hue to separate three categories of a kde plot
body: <p>I am trying to plot kernel density estimation plots for a data set that I successfully melted from a previous question.</p>
  <p>This is what I should be getting (This was created using <code>pd.concat([pd.DataFrame[Knn], pd.DataFrame[Kss], pd.DataFrame[Ktt], ...)</code>:
  <a href="https://i.stack.imgur.com/jKst7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jKst7.png" alt="enter image description here" /></a></p>
  <p>Here is what the dataframe looks like:</p>
  <pre class="lang-py prettyprint-override"><code>df_CohBeh
  Out[122]: 
      melt         value
  0    Knn  2.506430e+07
  1    Knn  3.344882e+06
  2    Knn  5.783376e+07
  3    Knn  1.687218e+06
  4    Knn  2.975834e+06
  ..   ...           ...
  106  Ktt  2.056249e+08
  107  Ktt  2.085805e+08
  108  Ktt  7.791227e+07
  109  Ktt  2.072576e+08
  110  Ktt  4.658559e+07
  
  [111 rows x 2 columns]
  </code></pre>
  <p>Where the column melt is simply the variable defined to specify three categories.</p>
  <pre class="lang-py prettyprint-override"><code># In[parameter distribution]
  
  # Melt the results to create a single dataframe
  df_CohBeh = pd.melt(df, value_vars=['Knn', 'Kss', 'Ktt'], var_name='melt')
  
  # Normal distribution plots
  f, ax = plt.subplots()
  sns.set_context(&quot;paper&quot;, 
                  rc={&quot;font.size&quot;:12,&quot;axes.titlesize&quot;:8,&quot;axes.labelsize&quot;:12})
  
  ax = sns.displot(data=df_CohBeh, hue=['Knn', 'Kss', 'Ktt'], 
                   kind=&quot;kde&quot;, fill=True, legend=False, height=5, aspect=1.6, 
                   cut=0, bw_adjust=1)
  
  ax.set(xlabel='Cohesive Parameters [Pa]', ylabel='Kernel Density Estimation')
  
  # Legend
  plt.legend(labels=[r'$K_{nn}$', r'$K_{ss}$', r'$K_{tt}$'], 
             loc='best').set_title(&quot;Parameter&quot;)
  </code></pre>
  <p>Here is the associated error message when I include <code>hue=['Knn', 'Kss', 'Ktt']</code></p>
  <pre class="lang-py prettyprint-override"><code>ValueError: The following variable cannot be assigned with wide-form data: `hue`
  </code></pre>
  <p>When I remove <code>hue=['Knn', 'Kss', 'Ktt']</code> from the displot function call, here is the resulting plot.  I'm not sure where the error is that I am getting that isn't plotting correctly.
  <a href="https://i.stack.imgur.com/kPhgj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kPhgj.png" alt="enter image description here" /></a></p>
  <p>Any help would be appreciated.  Thank you!</p>