SharpPlot Reference > SharpPlot Methods > SetYLabelNudge Method

SharpPlot.SetYLabelNudge Method

Apply fine adjustment to Y-axis labels from displacements (right,up) in points.

public void SetYLabelNudge(
    double nudgeX,
    double nudgeY
);

Example

// Move labels right and up to appear
// above the Y-axis tickmarks
 sp.SetYLabelNudge(4,4);

This could be used as a space-saver option, for example to move the labels upwards and inwards to reduce the requirement for a left margin, or just to ensure that the output charts conform to a particular house-style.


Send comments on this topic
© Dyalog Ltd 2021