def __call__(self, i):
    if (i == 0):
        return self.init()
    if (np.random.rand(1) < self.prob):
        self.success += 1
    y = ss.beta.pdf(self.x, (self.success + 1), ((i - self.success) + 1))
    self.line.set_data(self.x, y)
    return (self.line,)
def __call__(self, i):
    if (i == 0):
        return self.init()
    if (np.random.rand(1) < self.prob):
        self.success += 1
    y = ss.beta.pdf(self.x, (self.success + 1), ((i - self.success) + 1))
    self.line.set_data(self.x, y)
    return (self.line,)