code: 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
  
      # Set up plot parameters
      self.ax.set_xlim(0, 1)
      self.ax.set_ylim(0, 10)
      self.ax.grid(True)
  
      # This vertical line represents the theoretical value, to
      # which the plotted distribution should converge.
      self.ax.axvline(prob, linestyle="--", color="black")
  
file_path: matplotlib/galleries/examples/animation/bayes_update.py
imports: import math
  import matplotlib.pyplot
  import numpy
  from matplotlib.animation import FuncAnimation
label_desc: Use image node_id 1 to create a new UpdateDist object  with example: obj = UpdateDist(ax, prob)