Functions
gtsam.utils.plot Namespace Reference

Functions

def ellipsoid
 
def plot_3d_points (fignum, values, linespec="g*", marginals=None, title="3D Points", axis_labels=('X axis', 'Y axis', 'Z axis'))
 
def plot_covariance_ellipse_2d
 
def plot_covariance_ellipse_3d
 
def plot_incremental_trajectory
 
def plot_point2
 
def plot_point2_on_axes
 
def plot_point3
 
def plot_point3_on_axes
 
def plot_pose2
 
def plot_pose2_on_axes
 
def plot_pose3
 
def plot_pose3_on_axes (axes, pose, axis_length=0.1, P=None, scale=1)
 
def plot_trajectory
 
def set_axes_equal
 

Detailed Description

Various plotting utlities.

Function Documentation

◆ ellipsoid()

def gtsam.utils.plot.ellipsoid (   rx)

Definition at line 64 of file plot.py.

◆ plot_3d_points()

def gtsam.utils.plot.plot_3d_points (   fignum,
  values,
  linespec = "g*",
  marginals = None,
  title = "3D Points",
  axis_labels = ('X axis', 'Y axis', 'Z axis') 
)
Plots the Point3s in `values`, with optional covariances.
Finds all the Point3 objects in the given Values object and plots them.
If a Marginals object is given, this function will also plot marginal
covariance ellipses for each point.

Args:
    fignum (int): Integer representing the figure number to use for plotting.
    values (gtsam.Values): Values dictionary consisting of points to be plotted.
    linespec (string): String representing formatting options for Matplotlib.
    marginals (numpy.ndarray): Marginal covariance matrix to plot the
        uncertainty of the estimation.
    title (string): The title of the plot.
    axis_labels (iterable[string]): List of axis labels to set.

Definition at line 353 of file plot.py.

◆ plot_covariance_ellipse_2d()

def gtsam.utils.plot.plot_covariance_ellipse_2d (   axes,
  origin 
)

Definition at line 131 of file plot.py.

◆ plot_covariance_ellipse_3d()

def gtsam.utils.plot.plot_covariance_ellipse_3d (   axes,
  origin 
)

Definition at line 88 of file plot.py.

◆ plot_incremental_trajectory()

def gtsam.utils.plot.plot_incremental_trajectory (   fignum)

Definition at line 533 of file plot.py.

◆ plot_point2()

def gtsam.utils.plot.plot_point2 (   fignum)

Definition at line 184 of file plot.py.

◆ plot_point2_on_axes()

def gtsam.utils.plot.plot_point2_on_axes (   axes,
  point 
)

Definition at line 163 of file plot.py.

◆ plot_point3()

def gtsam.utils.plot.plot_point3 (   fignum)

Definition at line 311 of file plot.py.

◆ plot_point3_on_axes()

def gtsam.utils.plot.plot_point3_on_axes (   axes,
  point 
)

Definition at line 290 of file plot.py.

◆ plot_pose2()

def gtsam.utils.plot.plot_pose2 (   fignum)

Definition at line 255 of file plot.py.

◆ plot_pose2_on_axes()

def gtsam.utils.plot.plot_pose2_on_axes (   axes,
  pose 
)

Definition at line 218 of file plot.py.

◆ plot_pose3()

def gtsam.utils.plot.plot_pose3 (   fignum)

Definition at line 436 of file plot.py.

◆ plot_pose3_on_axes()

def gtsam.utils.plot.plot_pose3_on_axes (   axes,
  pose,
  axis_length = 0.1,
  P = None,
  scale = 1 
)
Plot a 3D pose on given axis `axes` with given `axis_length`.

The uncertainty ellipse (if covariance is given) is scaled in such a way
that 95% of drawn samples are inliers, see `plot_covariance_ellipse_3d`.

Args:
    axes (matplotlib.axes.Axes): Matplotlib axes.
    point (gtsam.Point3): The point to be plotted.
    linespec (string): String representing formatting options for Matplotlib.
    P (numpy.ndarray): Marginal covariance matrix to plot the uncertainty of the estimation.

Definition at line 396 of file plot.py.

◆ plot_trajectory()

def gtsam.utils.plot.plot_trajectory (   fignum)

Definition at line 475 of file plot.py.

◆ set_axes_equal()

def gtsam.utils.plot.set_axes_equal (   fignum)

Definition at line 35 of file plot.py.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:26