void SetAspectRatio( double dRatio )
void SetAspectRatio( double dWidth, double dHeight )
double dRatio
If dRatio is greater than zero, the plot enters fixed aspect ratio mode and uses dRatio as the aspect ratio. If dRatio is less than or equal to zero, the plot
exits fixed aspect ratio mode.
double dWidth
Calling the version of this method that accepts two parameters is the same as calling the version that accepts one parameter and specifying dRatio as dWidth / dHeight.
double dHeight
Calling the version of this method that accepts two parameters is the same as calling the version that accepts one parameter and specifying dRatio as dWidth / dHeight.
This method controls the aspect ratio of the Plot Area.
By default, plots are not in fixed aspect ratio mode. To enter fixed aspect ratio mode, call this method with a positive argument to specify the desired aspect ratio. The aspect ratio is the ratio of the data range per unit distance along the X axis to the data range per unit distance along the Y axis. To exit fixed aspect ratio mode, call this method with a negative argument.
Calling the method Plot.SetGraphAreaMargins causes the plot to exit fixed aspect ratio mode.
While a plot is in fixed aspect ratio mode, you cannot use the mouse to change the Graph Area margins by dragging the Plot Area frame.
This method is only supported by the following classes: ContourPlot, LinePlot, PolygonPlot, ScatterPlot.
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 );
Plot2D.GetAspectRatio
Plot2D.SetGraphAreaMargins
Plot.SetGraphAreaMargins