Table of Contents

Class VerticalSpan

Namespace
ScottPlot.Plottables
Assembly
ScottPlot.dll

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

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

Properties

Bottom

public double Bottom { get; set; }

Property Value

double

Top

public double Top { get; set; }

Property Value

double

Y1

public double Y1 { get; set; }

Property Value

double

Y2

public double Y2 { get; set; }

Property Value

double

YRange

public CoordinateRange YRange { 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