主要内容

LineVisual

R2026b

Line visual

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    A LineVisual object controls the appearance of plotted lines in a scenario viewer.

    Creation

    Create a LineVisual object by using the plotline function.

    Properties

    expand all

    Line color, specified as an RGB triplet, a hexadecimal color code, or a color name. The default is a blue color.

    Line style, specified as one of these values:

    • "-" — Use a solid line.

    • "--" — Use a dashed line.

    • "none" — Hide the line.

    Line width, in pixels, specified as a positive scalar.

    Marker symbol, specified as one of these values:

    • "o" — Use circle markers.

    • "none" — Hide the markers.

    Radius of the circle markers, in pixels, specified as a positive scalar.

    Marker outline color, specified as "auto", an RGB triplet, a hexadecimal color code, a color name, or "none". The value "auto" uses the same color as the Color property.

    Marker fill color, specified as "none", an RGB triplet, a hexadecimal color code, or a color name.

    Line vertices, specified as a geospatial table containing geopointshape objects. The number of table rows indicates the number of vertices in the line.

    You can create a geospatial table from latitude, longitude, and height coordinates by using the pointtable function.

    State of visibility, 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 visual object in the viewer.

    • "off" — Do not show the visual object in the viewer.

    Version History

    Introduced in R2026b