Plot2D.GetAspectRatio

Prototypes

double GetAspectRatio()

Return Value

If the plot is in fixed aspect ratio mode, the return value is the aspect ratio of the Plot Area. If the plot is not in fixed aspect ratio mode, the return value is -1.

Parameters

None

Remarks

This method returns the aspect ratio of the plot's Plot Area. For information about fixed aspect ratio mode, see Plot2D.SetAspectRatio.

Example
x = 1:10;
y = { 7 5 3 2 4 10 12 9 5 2 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Example", x, y );
plot.SetAspectRatio( 1 );
ar = plot.GetAspectRatio();
print ar;
See Also

Plot2D.SetAspectRatio