Is it possible to put data labels (values) in pandas/matplotlib stacked area charts?
In stacked bar plots, I use the below
for label in yrplot.patches:
yrplot.annotate(label.get_height(), (label.get_x()+label.get_width()/2.,label.get_y()+label.get_height()/2.),
ha='center', va='center', xytext=(0, 1),
textcoords='offset points')
Below is how I am plotting the stacked area chart
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn as sns
yrplot = yrly_perc_df.plot(x='year', y=prod, kind='area', stacked=True, figsize=(15,10), color = areacolors)
yrplot.set_ylabel('share')
yrplot.legend(loc='center left', bbox_to_anchor=(1.0,0.5))
Any leads would be much appreciated. To state my want, it is something similar to this image but in a stacked area chart (data labels along the plot, similar to the first code in the question).