title: Seaborn countplot set legend for x values
body: <p>I'm ploting a categorical data and value count by <code>sns.countplot()</code></p>
  <p>I'm trying to add legend for x-values to the figure as following: handles is set of x-value, labels is the descriptions of x-values.</p>
  <pre><code>ax = sns.countplot(x = df.GARAGE_DOM)
  handles, labels = ax.get_legend_handles_labels()
  
  handles = [&quot;VP&quot;, &quot;BC&quot;, &quot;GC&quot;, &quot;GP&quot;, &quot;JC&quot;, &quot;PO&quot;]
  labels = [&quot;Voie Publique&quot;, &quot;box&quot;, &quot;Garage couvert&quot;, &quot;garage particulier clos&quot;, &quot;Jardin clos&quot;, &quot;parking ouvert&quot;]
  by_label = OrderedDict(zip(handles,labels))
  ax.legend(by_label.keys(), by_label.values())
  </code></pre>
  <p>However, I got warning that</p>
  <blockquote>
  <p>UserWarning:</p>
  <p>Legend does not support 'VP' instances.
  A proxy artist may be used instead.
  See: <a href="http://matplotlib.org/users/legend_guide.html#using-proxy-artist" rel="nofollow noreferrer">http://matplotlib.org/users/legend_guide.html#using-proxy-artist</a></p>
  </blockquote>
  <p>I've read the doc of proxy artist but I didn't find examples in my case.</p>
  <p><a href="https://i.stack.imgur.com/4mTrN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4mTrN.png" alt="enter image description here" /></a></p>
  <p>Thanks for your help.</p>