DataObject.SetMarkerShape

Prototypes

void SetMarkerShape( <Matrix mObsNumbers,> int nShape )

Parameters

int nShape
A predefined constant specifying the desired shape. The valid values are MARKER_SQUARE, MARKER_PLUS, MARKER_CIRCLE, MARKER_DIAMOND, MARKER_X, MARKER_TRIANGLE, MARKER_INVTRIANGLE, and MARKER_STAR.

Matrix mObsNumbers
A vector containing the observation numbers (1-based) of the observations whose marker shape you want to change. To specify all the observation numbers in the DataObject, use the predefined constant OBS_ALL.

Remarks

This method sets the shape of the marker used to represent an observation in a plot. If you call this method without specifying the mObsNumbers parameter, it operates on the selected observations.

Although the method SetMarkerShape is defined in the DataObject class, you can also call it from the Plot class or any of the classes derived from the Plot class. This capability is provided for convenience.

Example
x = { 1, 2, 3, 4, 5, 6, 7, 8 };
y = { 2, 4, 8, 16, 32, 64, 128, 256 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
mObs = { 4 5 };
plot.SetMarkerShape( mObs, MARKER_TRIANGLE );
See Also

DataObject.GetMarkerShape