Main Content

plot

Plot aligned estimated trajectory and error metrics

Since R2024b

Description

plot(metrics,metricType) plots the aligned estimated trajectory and error values, color-coding the trajectory based on the specified metric type metricType, and the error values, linearly mapped to colors in the current colormap.

ax = plot(___) additionally returns the axes handle.

plot(___,Name=Value) specifies options using one or more name-value arguments in addition to the previous syntax. For example, ShowGroundTruth=false, suppresses the display of the ground truth trajectory.

Input Arguments

collapse all

Trajectory Error metrics, specified as a trajectoryErrorMetrics object.

Metric type, specified as "absolute-rotation", "absolute-translation, "relative-rotation", or "relative-translation".

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: plot(metric,metricType,ShowGroundTruth=false), suppresses the display of the ground truth trajectory.

Point cloud vertical axis and direction, specified as "ZUp", "ZDown", "XUp", "XDown", "YUp", or "YDown". This argument sets the axis of the point cloud as the vertical axis, with the positive direction based on the value specified.

Display ground truth trajectory, specified as true or false.

Axes on which to display the visualization, specified as an Axes graphics object. To create an Axes object, use the axes function. To display the visualization in a new figure, leave Parent unspecified.

Output Arguments

collapse all

Axes handle, returned as an axes graphics object.

Version History

Introduced in R2024b

See Also

Objects