Fixed the bug reported by samstudio8 that altering the parameters of the binomial distribution needs to clear and redraw the graph. Changed both the 1D and 2D code.