主要内容

mlreportgen.chart.LineCapType Class

Namespace: mlreportgen.chart

Line cap termination type

Since R2026b

Description

Use an object of the mlreportgen.chart.LineCapType class to to specify how a line visually terminates.

The mlreportgen.chart.LineCapType class is a handle class.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

Description

lineCapObj = mlreportgen.chart.LineCapType(lctype) specifies a LineCapType object of the type specified by the lctype argument.

Input Arguments

expand all

Visual termination of the line, specified as one of the values in the table.

Line CapDescription
FlatLine ends exactly at the endpoint with a flat edge
RoundLine midpoint ends exactly at the endpoint with a half round end that extends past the endpoint
SquareLine midpoint ends exactly at the endpoint with a square end that extends past the endpoint

Enumeration Members

Line CapDescription
mlreportgen.chart.LineCapType.FlatLine ends exactly at the endpoint with a flat edge
mlreportgen.chart.LineCapType.RoundLine midpoint ends exactly at the endpoint with a half round end that extends past the endpoint
mlreportgen.chart.LineCapType.SquareLine midpoint ends exactly at the endpoint with a square end that extends past the endpoint

Three thick black lines with white dashed mid-lines. The first line has flat ends and has the label "Flat". The second line has rounded ends that extend past the line endpoints and has the label "Round". The third line has square ends that extend past the line endpoints and has the label "Square".

Version History

Introduced in R2026b