ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Plottables.LinePlot Class Reference
Inheritance diagram for ScottPlot.Plottables.LinePlot:
ScottPlot.IPlottable ScottPlot.IHasLine ScottPlot.IHasMarker ScottPlot.IHasLegendText

Public Member Functions

AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 
virtual void Render (RenderPack rp)
 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.
 

Properties

Coordinates Start [get, set]
 
Coordinates End [get, set]
 
CoordinateLine Line [get, set]
 
MarkerStyle MarkerStyle = new() { Size = 0 } [get, set]
 
MarkerShape MarkerShape [get, set]
 
float MarkerSize [get, set]
 
Color MarkerFillColor [get, set]
 
Color MarkerLineColor [get, set]
 
Color MarkerColor [get, set]
 
float MarkerLineWidth [get, set]
 
string Label [get, set]
 
string LegendText = string.Empty [get, set]
 If populated, this text appears in the legend.
 
bool IsVisible = true [get, set]
 Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).
 
IAxes Axes = new Axes() [get, set]
 This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.
 
IEnumerable< LegendItemLegendItems [get]
 Items which will appear in the legend.
 
LineStyle LineStyle = new() { Width = 1 } [get, set]
 
float LineWidth [get, set]
 
LinePattern LinePattern [get, set]
 
Color LineColor [get, set]
 
bool LineOnTop = true [get, set]
 
bool MarkersOnTop [get, set]
 
Color Color [get, set]
 
- Properties inherited from ScottPlot.IPlottable
- Properties inherited from ScottPlot.IHasLine
- Properties inherited from ScottPlot.IHasMarker
- Properties inherited from ScottPlot.IHasLegendText

Member Function Documentation

◆ GetAxisLimits()

AxisLimits ScottPlot.Plottables.LinePlot.GetAxisLimits ( )
inline

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

Implements ScottPlot.IPlottable.

◆ Render()

virtual void ScottPlot.Plottables.LinePlot.Render ( RenderPack  rp)
inlinevirtual

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.

Implements ScottPlot.IPlottable.

Property Documentation

◆ Axes

IAxes ScottPlot.Plottables.LinePlot.Axes = new Axes()
getset

This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.

Implements ScottPlot.IPlottable.

◆ Color

Color ScottPlot.Plottables.LinePlot.Color
getset

◆ End

Coordinates ScottPlot.Plottables.LinePlot.End
getset

◆ IsVisible

bool ScottPlot.Plottables.LinePlot.IsVisible = true
getset

Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).

Implements ScottPlot.IPlottable.

◆ Label

string ScottPlot.Plottables.LinePlot.Label
getset

◆ LegendItems

IEnumerable<LegendItem> ScottPlot.Plottables.LinePlot.LegendItems
get

Items which will appear in the legend.

Implements ScottPlot.IPlottable.

◆ LegendText

string ScottPlot.Plottables.LinePlot.LegendText = string.Empty
getset

If populated, this text appears in the legend.

Implements ScottPlot.IHasLegendText.

◆ Line

CoordinateLine ScottPlot.Plottables.LinePlot.Line
getset

◆ LineColor

Color ScottPlot.Plottables.LinePlot.LineColor
getset

Implements ScottPlot.IHasLine.

◆ LineOnTop

bool ScottPlot.Plottables.LinePlot.LineOnTop = true
getset

◆ LinePattern

LinePattern ScottPlot.Plottables.LinePlot.LinePattern
getset

Implements ScottPlot.IHasLine.

◆ LineStyle

LineStyle ScottPlot.Plottables.LinePlot.LineStyle = new() { Width = 1 }
getset

Implements ScottPlot.IHasLine.

◆ LineWidth

float ScottPlot.Plottables.LinePlot.LineWidth
getset

Implements ScottPlot.IHasLine.

◆ MarkerColor

Color ScottPlot.Plottables.LinePlot.MarkerColor
getset

Implements ScottPlot.IHasMarker.

◆ MarkerFillColor

Color ScottPlot.Plottables.LinePlot.MarkerFillColor
getset

Implements ScottPlot.IHasMarker.

◆ MarkerLineColor

Color ScottPlot.Plottables.LinePlot.MarkerLineColor
getset

Implements ScottPlot.IHasMarker.

◆ MarkerLineWidth

float ScottPlot.Plottables.LinePlot.MarkerLineWidth
getset

Implements ScottPlot.IHasMarker.

◆ MarkerShape

MarkerShape ScottPlot.Plottables.LinePlot.MarkerShape
getset

Implements ScottPlot.IHasMarker.

◆ MarkerSize

float ScottPlot.Plottables.LinePlot.MarkerSize
getset

Implements ScottPlot.IHasMarker.

◆ MarkersOnTop

bool ScottPlot.Plottables.LinePlot.MarkersOnTop
getset

◆ MarkerStyle

MarkerStyle ScottPlot.Plottables.LinePlot.MarkerStyle = new() { Size = 0 }
getset

Implements ScottPlot.IHasMarker.

◆ Start

Coordinates ScottPlot.Plottables.LinePlot.Start
getset

The documentation for this class was generated from the following file: