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
SubLabelStyle
public LabelStyle SubLabelStyle { get; set; }
Property Value
SubLabelText
public string SubLabelText { get; set; }
Property Value
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
Render(RenderPack, float, float)
Draw this panel on a canvas
public override void Render(RenderPack rp, float size, float offset)
Parameters
rp
RenderPacksize
floatsize of this panel (pixel units)
offset
floatdistance from the edge of this panel to the edge of the data area