Plot.DrawRectangle

Prototypes

void DrawRectangle( double dX1, double dY1, double dX2, double dY2 <, boolean bFill> )

Parameters

double dX1, dY1, dX2, dY2
Opposite corners of a rectangle as two ordered pairs: (dX1, dY1) and (dX2, dY2). These coordinates are assumed to be in the current coordinate system.

boolean bFill
If bFill is true, the rectangle is filled using the current brush characteristics. If bFill is false, the rectangle is not filled. Calling this method without specifying the bFill parameter is equivalent to calling it with bFill equal to false.

Remarks

This method draws a rectangle with vertices (dX1, dY1), (dX2, dY1), (dX2, dY2), and (dX1, dY2). The rectangle is drawn using the current drawing attributes. The outline of the rectangle is drawn using the current pen characteristics. If the bFill parameter is true, the rectangle is filled using the current brush characteristics.

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.DrawUseDataCoordinates();
plot.DrawRectangle( 2, 1, 7, 8 );