Reference > Methods > FindExtremes Method

SharpPlot.FindExtremes Method

Find extreme values from array of arrays of y values and x-values. This returns the lower left and upper right corners of the rectangle bounding your data, allowing for the Curves style if this has been set. You may want to use the numbers it returns to ensure your axis ranges are set to include the curved lines connecting the points as well as the points themselves.

public double[] FindExtremes(
    double[][] data,
    int[] xValues
);
data
Array (of arrays) of y values.
xValues
Array of x values.
return value
Bounding box co-ordinates.

Note that the Curves option will compute the Bezier control points which always encompass the generated curve completely. This may slightly over-estimate the required range if the flexibility parameter is set very high.

See also ...

SharpPlot | Flexibility | SetXDataRange | SetYDataRange | Curves


Send comments on this topic
© Dyalog Ltd 2013