SharpPlot Reference > SharpPlot Properties > EquationStyle Property

SharpPlot.EquationStyle Property

When the equation of a curve is written on the line (chart style ModelFit+AnnotateModel) the default is to place it above the curve, at the right-hand end. The placement and appearance can be modified with this property.

public EquationStyles EquationStyle {get; set;}

Example

sp.EquationStyle = EquationStyles.Middle;

Options

AbsolutePosition is interpreted in points
AtEndOutside the line at the right-hand end
BelowBelow the line
ForceOriginForce fitted line through the origin
LeftLeft end of fitted line
LinearFitForce a linear equation even if we have logarithmic axes
MiddleMiddle of fitted line
OpaqueOpaque background to text
PercentagePosition is interpreted in percentage of axes
SpanDataFitted line spans data range, not X-axis
StraddleStraddling the line

See also ...

SharpPlot Members | SharpPlot.Equation Property (ReadOnly) | SharpPlot.EquationIndex Property | SharpPlot.SetEquationPosition Method


Send comments on this topic
© Dyalog Ltd 2016