SharpPlot Tutorials > Style Examples > Span data range for Fitting

Span data range for Fitting

The fitted line is not extended beyond the extreme points on the x-axis

// Set equation under the chart and span the reqression line
 sp.EquationStyle = EquationStyles.Middle|EquationStyles.Below|EquationStyles.SpanData;
 sp.EquationFormat = "y = C0 + C1x";

This may be a useful setting if several regressions are made through subsets of the data.

See also ...

Model fit | Trend lines | SharpPlot.SetModelSpan Method

Send comments on this topic
© Dyalog Ltd 2016