Plot Property

Measurement Studio User Interface

Plot Property

Syntax

Set CWAnnotation.Plot

Data Type

CWPlot

Purpose

Specifies the plot that the annotation is associated with.

Remarks

If CWAnnotation.CoordinateType is set to cwAxesCoordinates, the annotation uses the plot specified by the Plot property to scale text and shape coordinates. If CWAnnotation.SnapMode is set to True, the annotation shape is centered around the point on this plot with the index value of the CWAnnotation.PointIndex property.

Example

'Anchor the second annotation to the specified plot at point 25
CWGraph1.Annotations.Item(2).Plot = CWGraph1.Plots(1)
'Remember that PointIndex is zero-based
CWGraph1.Annotations.Item(2).PointIndex = 24
CWGraph1.Annotations.Item(2).SnapMode = cwCSnapPointsOnPlot

See Also

CWAnnotation.CoordinateType

CWAnnotation.SnapMode

CWAnnotation.PointIndex