Main Content

plot

Plot point cloud view set views and connections

Description

example

plot(vSet) plots the views and connections in the point cloud view set, vSet.

h = plot(vSet) returns a graph plot, h

plot(vSet,Name=Value) specifies options using one or more name-value arguments in addition to any combination of arguments from previous syntaxes. For example, plot(vSet,ShowViewIds="on") turns on the ID display.

Examples

collapse all

Create an empty point cloud view set.

vSet = pcviewset;

Define 3 relative poses.

relPoses = repelem(rigidtform3d,3,1);
relPoses(1).Translation = [3 0 0];
relPoses(2).Translation = [5 0 0];
relPoses(3).Translation = [2 0 0];

Accumulate the absolute poses.

absPoses = repelem(rigidtform3d,4,1);
absPoses(2).A = absPoses(1).A * relPoses(1).A;
absPoses(3).A = absPoses(2).A * relPoses(2).A;
absPoses(4).A = absPoses(3).A * relPoses(3).A;

Add 4 views to the point cloud view set.

vSet = addView(vSet,1,absPoses(1));
vSet = addView(vSet,2,absPoses(2));
vSet = addView(vSet,3,absPoses(3));
vSet = addView(vSet,4,absPoses(4));

Add 3 connections to the view set.

vSet = addConnection(vSet,1,2,relPoses(1));
vSet = addConnection(vSet,2,3,relPoses(2));
vSet = addConnection(vSet,3,4,relPoses(3));

Display the point cloud view set with view IDs.

plot(vSet,ShowViewIds="on")

Figure contains an axes object. The axes object contains an object of type graphplot.

Input Arguments

collapse all

Point cloud view set, specified as a pcviewset object.

Name-Value Arguments

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.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: ShowViewId="on" turns on the ID display.

Axes on which to plot view set, specified as an Axes object. To create an Axes object, use the axes function.

Display of view identifiers, specified as "on" or "off".

Output Arguments

collapse all

Graph plot, returned as a GraphPlot object. You can use the GraphPlot object functions and properties to inspect and adjust the plotted graph.

Version History

Introduced in R2020a

See Also

Functions

Objects