0

Good evening all, I have a pd.dataframe called plot_eigen_vecs_df which is of (3,11) dimension, and I am plotting each column value grouped by rows on a bar chart. I am using the following code:

plot_eigen_vecs_df.plot(kind='bar', figsize=(12, 8),
                                title='First 3 PCs factor loadings',
                                xlabel='Evects', legend=True)

The result is this graph:

enter image description here

I would like to keep the graph (grouped) exactly as it is, but I need to show the numeric value above each bars.

Thank you

I tried the add_label method, but unfortunately I am currently using a version of pyplot which is not the most recent, so .add_label doesn't work for me. Could you please help on the matter?

0 Answers0