Plot.ShowObsLabels

Prototypes

void ShowObsLabels( <boolean bShow> )

Parameters

boolean bShow
If bShow is true, observation labels will always be displayed for all observations. If bShow is false, an observation's label will be displayed only when the observation is clicked on. Calling this method without a parameter is equivalent to calling it with bShow equal to true.

Remarks

This method controls whether observation labels are always displayed or selectively displayed. Calls to this method are ignored by the BarChart, Histogram, or MosaicPlot classes because those plots do not display markers for individual observations.

Example
x = 1:8;
y = 1:8;
years = "1990":"1997";
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
dobj.AddVar( "X", x );
dobj.AddVar( "Y", y );
dobj.AddVar( "Year", years );
declare ScatterPlot plot;
plot = ScatterPlot.Create( dobj, "X", "Y" );
plot.SetObsLabelVar( "Year" );
plot.ShowObsLabels();
See Also

Plot.SetObsLabelVar