orientationPlotter
Description
creates an orientation plotter for use with the theater plot oPlotter
= orientationPlotter(tp
)tp
.
creates an orientation plotter with additional options specified by one or more
oPlotter
= orientationPlotter(tp
,Name,Value
)Name,Value
pair arguments.
Examples
Create a theater plot object and a trajectory plotter.
tp = theaterPlot('XLimit',[-2 2],'YLimit',[-2 2],'ZLimit',[-2 2]); op = orientationPlotter(tp,'DisplayName','Orientation',... 'LocalAxesLength',2);
Create some random rotations.
pose = randrot(20,1);
Loop through the pose information to animate the orientations.
for i=1:numel(pose) plotOrientation(op,pose(i)) drawnow end
Input Arguments
Theater plot, specified as a theaterPlot
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: 'HistoryDepth',6
Plot name to display in legend, specified as the comma-separated pair consisting of 'DisplayName'
and a character vector or string scalar. If no name is specified, no entry is shown.
Example: 'DisplayName','Radar Detections'
Number of previous track updates to display, specified as the comma-separated pair
consisting of 'HistoryDepth'
and a nonnegative integer less than or
equal to 100. If set to 0, then no previous updates are rendered.
Marker symbol, specified as the comma-separated pair consisting of
'Marker'
and one of these symbols.
Marker | Description | Resulting Marker |
---|---|---|
"o" | Circle |
|
"+" | Plus sign |
|
"*" | Asterisk |
|
"." | Point |
|
"x" | Cross |
|
"_" | Horizontal line |
|
"|" | Vertical line |
|
"square" | Square |
|
"diamond" | Diamond |
|
"^" | Upward-pointing triangle |
|
"v" | Downward-pointing triangle |
|
">" | Right-pointing triangle |
|
"<" | Left-pointing triangle |
|
"pentagram" | Pentagram |
|
"hexagram" | Hexagram |
|
"none" | No markers | Not applicable |
Size of marker, specified in points as the comma-separated pair consisting of
'MarkerSize'
and a positive integer.
Marker outline color, specified as the comma-separated pair consisting of
'MarkerEdgeColor'
and a character vector, string scalar, an RGB
triplet, or a hexadecimal color code. The default color is
'black'
.
Marker outline color, specified as the comma-separated pair consisting of
'MarkerFaceColor'
and a character vector, a string scalar, an
RGB triplet, a hexadecimal color code, or 'none'
. The default is
'none'
.
Font size for labeling tracks, specified as the comma-separated pair consisting of
'FontSize'
and a positive integer that represents font point
size.
Gap between label and positional point it annotates, specified as the
comma-separated pair consisting of 'LabelOffset'
and a
three-element row vector. Specify the [x
y
z] offset in meters.
Length of line used to denote each of the local x-,
y-, and z-axes of the given orientation,
specified as the comma-separated pair consisting of
'LocalAxesLength'
and a positive scalar.
'LocalAxesLength'
is in meters.
Tag to associate with the plotter, specified as the comma-separated pair
consisting of 'Tag'
and a character vector or string scalar. The
default value is 'PlotterN'
, where
N is an integer that corresponds to the Nth
plotter associated with the theaterPlot
.
Tags provide a way to identify plotter objects, for example when searching using
findPlotter
.
Version History
Introduced in R2021a
See Also
theaterPlot
| plotOrientation
| clearData
| clearPlotterData
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)