Closed graingert-coef closed 1 month ago
The errorbars in bar plot are computed using a bootstrap by default. There is a seed parameter you can set if you want it to be reproducible.
@mwaskom thanks! what's the seed parameter?
It's seed=
.
Ah the parameter is for map_dataframe so it gets passed to sns.barplot:
g.map_dataframe(
sns.barplot,
x=groupby,
y="normalised_selection_rate",
hue=groupby,
palette=color_dict,
legend=False,
seed=np.random.default_rng(0),
)
demo:
running this prints: