How to get data labels on a Seaborn pointplot?
<p>I have two arrays like so:</p>

<pre><code>Soldier_years = [1850, 1851, 1852, 1853, 1854, 1855, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, 1867, 1868, 1869, 1870]
num_records_yob = [7, 5, 8, 9, 15, 17, 23, 19, 52, 55, 73, 73, 107, 137, 65, 182, 228, 257, 477, 853, 2303]
</code></pre>

<p>I'm trying to get these into a Seaborn pointplot like so:</p>

<pre><code>%matplotlib inline
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="darkgrid")

f, (ax) = plt.subplots(figsize=(12, 6), sharex=True)

sns.set_style("darkgrid")
ax = sns.pointplot(x=Soldier_years, y=num_records_yob)
</code></pre>

<p>I get a pointplot like so:</p>

<p><a href="https://i.stack.imgur.com/N2RWa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/N2RWa.png" alt="Pointplot"></a></p>

<p>This plot is almost what I want. How do I get the data labels of each of the points to show above the respective points? </p>

<p>I tried <code>ax.patches</code>, but it is empty. </p>

<p>I'm trying to get it look like this (but for the pointplot):
<a href="https://i.stack.imgur.com/ZNlMS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZNlMS.png" alt="enter image description here"></a></p>