bar chart - Error bars not showing caps in barplot seaborn -
i preparing bar plot see caps on error bars. @ moment not manage caps on error bars - not sure why. code , below figure get. let me know how caps on error bars? thank you!
with sns.plotting_context("notebook", font_scale=1.4): g = sns.factorplot(x="probaranges", y="match ipcc range",hue="scale", col="presentation",col_order=['individual', 'joint'], data=df_long, kind="bar", estimator=sum, size=5, aspect=1.5, palette=col4, linewidth=0.5, ci = 95, capsize =.8, edgecolor=sns.color_palette(colw));
** edits** here example easier replicate , still not show caps on error bars.
titanic = sns.load_dataset('titanic') g = sns.factorplot(col = "survived", y="fare", hue="sex",x="embark_town", data=titanic, kind="point", dodge=0.5, size=8, aspect=1, capthick=1, linewidth=1, ci=95, markers=["^", "o"], capsize=0.2,linestyles=["-", "--"]) plt.ylim(0, 100) g.set_xticklabels(rotation=30) g.set_axis_labels('depature city', 'fare')
Comments
Post a Comment