Plot.DrawUseNormalizedCoordinates

Prototypes

void DrawUseNormalizedCoordinates( Matrix mCoords )

void DrawUseNormalizedCoordinates( double dXMin, double dXMax, double dYMin, double dYMax )

Parameters

Matrix mCoords
A numeric matrix that specifies the minimum and maximum values of the normalized coordinate system. The shape of this matrix must be 1x4, 2x2, or 4x1. The coordinates must be specified in row-major order as follows: X min, X max, Y min, Y max.

double dXMin
The minimum value of the horizontal coordinate in the normalized coordinate system.

double dXMax
The maximum value of the horizontal coordinate in the normalized coordinate system.

double dYMin
The minimum value of the vertical coordinate in the normalized coordinate system.

double dYMax
The maximum value of the vertical coordinate in the normalized coordinate system.

Remarks

This method specifies that coordinate parameters to subsequent drawing commands should be interpreted as being in the specified normalized coordinate system. If the current drawing region is PLOTFOREGROUND, this method assigns the same normalized coordinate system to the PLOTBACKGROUND drawing region, and vice versa. In other words, both drawing regions share the same coordinate system. The GRAPHFOREGROUND drawing region maintains its own independent normalized coordinate system.

Note that because the Plot Area has margins, a rectangle drawn around the Plot Area's normalized coordinate system will appear inset from the Plot Area's frame. You can query and set the Plot Area margins by using the methods Plot.GetPlotAreaMargins and Plot.SetPlotAreaMargins.

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
plot.DrawUseNormalizedCoordinates( 0, 1, 0, 1 );
plot.DrawRectangle( 0.1, 0.2, 0.9, 0.8 );
See Also

Plot.DrawUseDataCoordinates