title: How to add percentages on top of grouped bars
body: <p>Given the following count plot how do I place percentages on top of the bars?</p>
  <pre><code>import seaborn as sns
  sns.set(style=&quot;darkgrid&quot;)
  titanic = sns.load_dataset(&quot;titanic&quot;)
  ax = sns.countplot(x=&quot;class&quot;, hue=&quot;who&quot;, data=titanic)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/b1m5F.png" rel="noreferrer"><img src="https://i.stack.imgur.com/b1m5F.png" alt="enter image description here" /></a></p>
  <p>For example for &quot;First&quot; I want total First men/total First, total First women/total First, and total First children/total First on top of their respective bars.</p>