double GetAspectRatio()
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.
None
This method returns the aspect ratio of the plot's Plot Area. For information about fixed aspect ratio mode, see Plot2D.SetAspectRatio.
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;