Table of Contents

Class HorizontalSpan

Namespace
ScottPlot.Plottables
Assembly
ScottPlot.dll

A horizontal span marks the full vertical range between two horizontal values

public class HorizontalSpan : AxisSpan, IHasLine, IHasFill, IHasLegendText, IPlottable
Inheritance
HorizontalSpan
Implements
Inherited Members
Extension Methods

Properties

Left

public double Left { get; set; }

Property Value

double

Right

public double Right { get; set; }

Property Value

double

X1

public double X1 { get; set; }

Property Value

double

X2

public double X2 { get; set; }

Property Value

double

XRange

public CoordinateRange XRange { get; }

Property Value

CoordinateRange

Methods

DragTo(AxisSpanUnderMouse, Coordinates)

public override void DragTo(AxisSpanUnderMouse spanUnderMouse, Coordinates mouseNow)

Parameters

spanUnderMouse AxisSpanUnderMouse
mouseNow Coordinates

GetAxisLimits()

Return the 2D area (in coordinate space) occupied by the data contained in this plottable

public override AxisLimits GetAxisLimits()

Returns

AxisLimits

Render(RenderPack)

Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.

public override void Render(RenderPack rp)

Parameters

rp RenderPack

UnderMouse(CoordinateRect)

public override AxisSpanUnderMouse? UnderMouse(CoordinateRect rect)

Parameters

rect CoordinateRect

Returns

AxisSpanUnderMouse