I would like to plot a histplot but using points rather than bars.
x_n10_p0_6 = binom.rvs(n=10, p=0.6, size=10000, random_state=0)
x_n10_p0_8 = binom.rvs(n=10, p=0.8, size=10000, random_state=0)
x_n20_p0_8 = binom.rvs(n=20, p=0.6, size=10000, random_state=0)
df = pd.DataFrame({
'x_n10_p0_6': x_n10_p0_6,
'x_n10_p0_8': x_n10_p0_8,
'x_n20_p0_8': x_n20_p0_8
})
sns.histplot(df)
This is what I'm getting:
I would like to see something like this:
Source: https://en.wikipedia.org/wiki/Binomial_distribution#/media/File:Binomial_distribution_pmf.svg
There is an element attribute to histplot but it only takes the values {“bars”, “step”, “poly”}