Table of Contents

Class LeftAxisWithSubtitle

Namespace
ScottPlot.AxisPanels.Experimental
Assembly
ScottPlot.dll

A simple custom Y axis which includes a subtitle/sub-label. Note that Measure() and Render(RenderPack, float, float) are called whenever the plot needs to be rendered so be wary of heavy code that will slow down the rendering if you are using the chart in a user interface where there is zooming, panning, etc.

public class LeftAxisWithSubtitle : YAxisBase, IYAxis, IAxis, IPanel
Inheritance
LeftAxisWithSubtitle
Implements
Inherited Members
Extension Methods

Constructors

LeftAxisWithSubtitle()

public LeftAxisWithSubtitle()

Properties

Edge

public override Edge Edge { get; }

Property Value

Edge

SubLabelStyle

public LabelStyle SubLabelStyle { get; set; }

Property Value

LabelStyle

SubLabelText

public string SubLabelText { get; set; }

Property Value

string

Methods

Measure()

Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on

public override float Measure()

Returns

float

Render(RenderPack, float, float)

Draw this panel on a canvas

public override void Render(RenderPack rp, float size, float offset)

Parameters

rp RenderPack
size float

size of this panel (pixel units)

offset float

distance from the edge of this panel to the edge of the data area