parameters: (axes,
                          point: Point2,
                          linespec: str,
                          P: Optional[np.ndarray] = None)
docstring: Plot a 2D point on given axis `axes` with given `linespec`.
  
      Args:
          axes (matplotlib.axes.Axes): Matplotlib axes.
          point: The point to be plotted.
          linespec: String representing formatting options for Matplotlib.
          P: Marginal covariance matrix to plot the uncertainty of the estimation.
docstring_summary: Plot a 2D point on given axis `axes` with given `linespec`.
docstring_tokens: Plot a 2D point on given axis axes with given linespec .
function: def plot_point2_on_axes(axes,
                          point: Point2,
                          linespec: str,
                          P: Optional[np.ndarray] = None) -> None:
      """
      Plot a 2D point on given axis `axes` with given `linespec`.
  
      Args:
          axes (matplotlib.axes.Axes): Matplotlib axes.
          point: The point to be plotted.
          linespec: String representing formatting options for Matplotlib.
          P: Marginal covariance matrix to plot the uncertainty of the estimation.
      """
      axes.plot([point[0]], [point[1]], linespec, marker='.', markersize=10)
      if P is not None:
          w, v = np.linalg.eig(P)
  
          # 5 sigma corresponds to 99.9996%, see note above
          k = 5.0
  
          angle = np.arctan2(v[1, 0], v[0, 0])
          e1 = patches.Ellipse(point,
                               np.sqrt(w[0] * k),
                               np.sqrt(w[1] * k),
                               np.rad2deg(angle),
                               fill=False)
          axes.add_patch(e1)
function_tokens: def plot_point2_on_axes ( axes , point : Point2 , linespec : str , P : Optional [ np . ndarray ] = None ) -> None : axes . plot ( [ point [ 0 ] ] , [ point [ 1 ] ] , linespec , marker = '.' , markersize = 10 ) if P is not None : w , v = np . linalg . eig ( P ) # 5 sigma corresponds to 99.9996%, see note above k = 5.0 angle = np . arctan2 ( v [ 1 , 0 ] , v [ 0 , 0 ] ) e1 = patches . Ellipse ( point , np . sqrt ( w [ 0 ] * k ) , np . sqrt ( w [ 1 ] * k ) , np . rad2deg ( angle ) , fill = False ) axes . add_patch ( e1 )