[BUG] plot
method of the Binomial
distribution shows incorrect pmf.
#416
Labels
plot
method of the Binomial
distribution shows incorrect pmf.
#416
Describe the bug
The
plot
method of theBinomial
distribution shows incorrect pmf.To Reproduce
Expected behavior
The
plot.("pmf")
should show the correct Binomial plot, which looks like this:Additional context - comments by @fkiraly from #415
Currently, the plotting function samples a grid of x points, plots x, f(x) for the function and connects them. If the grid does not hit the mass points, the plot will look like this.
The only way to have the correct plot always is to know where the support is. That is currenty not inspectable from the object, and that's why I wanted the sets symbolism from #244.
This bug is also referenced in #415
The text was updated successfully, but these errors were encountered: