ci=68 and SEM is NOT same when the distribution of dataset is non-parametric. Therefore, you cannot calculate SEM with seaborn for now. You shouldn't confuse these especially in scientific papers. (Many physiological phenomena is non-parametric...)
I think this point is strong drawback of seaborn...because most scientific paper use SEM (NOT ci=68). Just do not use seaborn in scientific papers when you want to use SEM! To the best of my knowledge, only way is to use matplotlib or pandas plot sem. https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.sem.html
As simple as this:
import seaborn as sns
sns.barplot(data=df, x='X', y='y', hue='HUE', capsize=.1, ci=68)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.