Main Content

plot

Plot image view set views and connections

Since R2020a

Description

plot(vSet) plots the views and connections in the 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="off") turns off the ID display.

Examples

collapse all

Create an empty image view set.

vSet = imageviewset;

Define three 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];

Calculate and add 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 four views to the image 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 connections between the added views.

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

Plot the view set with view identifers.

plot(vSet,ShowViewIds="on")

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

Input Arguments

collapse all

Image view set, specified as a imageviewset 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="off" turns off 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