I'm trying to replicate a plot in python (pandas or matplotlib), but can't seem to get it.
The data looks like this - I have multiple types of plants, treated with different concentrations of a compound and either exposed or not to stress.
Excel gives this plot, which works, but I can't put error bars on it. I will have to add error bars (SEM).
I did some plots with data.groupby(['Plant', 'Concentration', 'Stress']).mean().unstack().plot.bar() but they are not very pretty. Mostly the grouping on the bottom is not good. I also tried pivot_table, but the results were similar.
Such a plot can be created with Seaborn (a library extending matplotlib, for statistical visualization). Seaborn automatically adds error bars (by default "ci": 95% confidence interval for the mean, calculated via bootstrapping).