Plot.SetGraphAreaMargins

Prototypes

void SetGraphAreaMargins( double dLeft, double dRight, double dTop, double dBottom )

Parameters

double dLeft
If dLeft is greater than or equal to 0, it specifies the left margin of the Graph Area as a fraction of the Graph Area's width. In this case, dLeft must be in the range 0 to 1.0. If dLeft is negative, the left margin is not changed.

double dRight
If dRight is greater than or equal to 0, it specifies the right margin of the Graph Area as a fraction of the Graph Area's width. In this case, dRight must be in the range 0 to 1.0. If dRight is negative, the right margin is not changed.

double dTop
If dTop is greater than or equal to 0, it specifies the top margin of the Graph Area as a fraction of the Graph Area's height. In this case, dTop must be in the range 0 to 1.0. If dTop is negative, the top margin is not changed.

double dBottom
If dBottom is greater than or equal to 0, it specifies the bottom margin of the Graph Area as a fraction of the Graph Area's height. In this case, dBottom must be in the range 0 to 1.0. If dBottom is negative, the bottom margin is not changed.

Remarks

This method sets the margins of the Graph Area. The sum of opposing margin values must be in the range 0 to 1.0.

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot = ScatterPlot.Create( "Sample Data", x, y );
plot.SetGraphAreaMargins( 0.2, -1, -1, 0.25 );
See Also

Plot2D.SetGraphAreaMargins
Plot.GetGraphAreaMargins
Plot.SetPlotAreaMargins