plot
R2026bDescription
Add-On Required: This feature requires the 3D Scenarios add-on.
Input Arguments
Ray paths, specified as a vector of RayPath objects
or a vector of RayPathSet
objects. You can also specify a scalar object.
Viewer, specified as a GlobeViewer
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.
Example: plot(v,raypath,LineWidth=7) specifies the width of the lines
that make up the ray paths.
Specify properties of the visual object using name-value arguments. The supported name-value arguments depends on the type of input.
| Type of Input | Supported Name-Value Arguments |
|---|---|
raypath contains RayPath
objects | See the RayPathVisual object. |
raypath contains RayPathSet
objects | See the RayTraceVisual object. |
When raypath contains RayPath objects, you can
also set these name-value arguments that do not have matching properties on the
RayPathVisual object. The function uses the
ColorMetric, Colormap, and
ColorLimits arguments to set the Color property
of the RayPathVisual object.
Metric for the ray path colors, specified as one of these values:
"num-interactions"— Apply color to the ray paths based on the number of interactions. By default, theplotobject sets the color limits to the minimum and maximum number of interactions, and the number of interactions map directly to colors in the colormap."distance"— Apply color to the ray paths based on the propagation distance.When
raypathcontainsRayPathobjects, the function uses this argument to set theColorproperty of theRayPathVisualobject. Specifying bothColorMetricandColoris not supported.
Colormap for the ray paths, specified as an m-by-3 array of RGB triplets that define m individual colors or as a colormap name from this table.
| Colormap Name | Color Scale |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When raypath contains RayPath objects, the
function uses this argument to set the Color property of the
RayPathVisual object. Specifying both Colormap
and Color is not supported.
Color limits for the ray paths, specified as a two-element vector of the form
[cmin cmax]. This property determines how data values map to the
colors in the colormap, where:
cminspecifies the data value that maps to the first color in the colormap.cmaxspecifies the data value that maps to the last color in the colormap.
The plot object interpolates data values
between cmin and cmax across the colormap.
Values outside this range use either the first or last color, whichever is
closest.
When raypath contains RayPath objects, the
function uses this argument to set the Color property of the
RayPathVisual object. Specifying both
ColorLimits and Color is not
supported.
Option to show the color legend, specified as "on" or
"off", or as numeric or logical 1
(true) or 0 (false). A
value of "on" is equivalent to true, and
"off" is equivalent to false. Thus, you can
use the value of this property as a logical value. The value is stored as an on/off
logical value of type matlab.lang.OnOffSwitchState.
"on"— Show the color legend."off"— Do not show the color legend.
The viewer can display a maximum of one legend at a time.
Output Arguments
Ray path visual, returned as one of these options:
A vector of
RayPathVisualobjects, whenraypathis a vector ofRayPathobjects.A vector of
RayTraceVisualobjects, whenraypathis a vector ofRayPathSetobjects.
The size of pathvis matches the size of
raypath.
Version History
Introduced in R2026b
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)