def __init__(self, ax, prob=0.5):
    self.success = 0
    self.prob = prob
    (self.line,) = ax.plot([], [], 'k-')
    self.x = np.linspace(0, 1, 200)
    self.ax = ax
    self.ax.set_xlim(0, 1)
    self.ax.set_ylim(0, 15)
    self.ax.grid(True)
    self.ax.axvline(prob, linestyle='--', color='black')
def __init__(self, ax, prob=0.5):
    self.success = 0
    self.prob = prob
    (self.line,) = ax.plot([], [], 'k-')
    self.x = np.linspace(0, 1, 200)
    self.ax = ax
    self.ax.set_xlim(0, 1)
    self.ax.set_ylim(0, 15)
    self.ax.grid(True)
    self.ax.axvline(prob, linestyle='--', color='black')