VectSharp 2.6.1
A light library for C# vector graphics
All Classes Namespaces Functions Variables Enumerations Properties Events Pages
VectSharp.Plots.Area< T > Class Template Reference

A plot element that fills an area between a line passing through some data points and a base line. More...

Inheritance diagram for VectSharp.Plots.Area< T >:

Public Member Functions

 Area (IEnumerable< T > data, Func< T, T > getBaseline, ICoordinateSystem< T > coordinateSystem)
 Create a new Area<T> instance. More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics.
Parameters
targetThe Graphics on which to draw.
More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics. More...
 

Properties

IEnumerable< T > Data [get, set]
 The data points through which the upper part of the area will pass. More...
 
Func< T, T > GetBaseline [get, set]
 A function returning the baseline for each data point. More...
 
bool Smooth [get, set]
 If this is false, straight line segments are used to join the data points. If this is true, a smooth spline passing through all of them is used instead. More...
 
ICoordinateSystem< T > CoordinateSystem [get, set]
 The coordinate system used to transform the points from data space to plot space. More...
 
PlotElementPresentationAttributes PresentationAttributes = new PlotElementPresentationAttributes() [get, set]
 Presentation attributes determining the appearance of the area. More...
 
string Tag [get, set]
 A tag to identify the area in the plot. More...
 
- Properties inherited from VectSharp.Plots.IPlotElement
ICoordinateSystem CoordinateSystem [get]
 The coordinate system used to transform the points from data space to plot space. More...
 

Detailed Description

A plot element that fills an area between a line passing through some data points and a base line.

Template Parameters
TThe kind of data describing the data points (generally, IReadOnlyList<double>).

Definition at line 599 of file DataPoints.cs.

Constructor & Destructor Documentation

◆ Area()

VectSharp.Plots.Area< T >.Area ( IEnumerable< T >  data,
Func< T, T >  getBaseline,
ICoordinateSystem< T >  coordinateSystem 
)

Create a new Area<T> instance.

Parameters
dataThe data points through which the upper part of the area will pass.
getBaselineA function returning the baseline for each data point.
coordinateSystemThe coordinate system used to transform the points from data space to plot space.

Definition at line 640 of file DataPoints.cs.

Member Function Documentation

◆ Plot()

void VectSharp.Plots.Area< T >.Plot ( Graphics  target)

Draw the plot element on the specified target &#160;Graphics.

Parameters
targetThe Graphics on which to draw.

Implements VectSharp.Plots.IPlotElement.

Definition at line 648 of file DataPoints.cs.

Property Documentation

◆ CoordinateSystem

The coordinate system used to transform the points from data space to plot space.

Implements VectSharp.Plots.IPlotElement.

Definition at line 621 of file DataPoints.cs.

◆ Data

IEnumerable<T> VectSharp.Plots.Area< T >.Data
getset

The data points through which the upper part of the area will pass.

Definition at line 604 of file DataPoints.cs.

◆ GetBaseline

Func<T, T> VectSharp.Plots.Area< T >.GetBaseline
getset

A function returning the baseline for each data point.

Definition at line 609 of file DataPoints.cs.

◆ PresentationAttributes

Presentation attributes determining the appearance of the area.

Definition at line 627 of file DataPoints.cs.

◆ Smooth

bool VectSharp.Plots.Area< T >.Smooth
getset

If this is false, straight line segments are used to join the data points. If this is true, a smooth spline passing through all of them is used instead.

Definition at line 615 of file DataPoints.cs.

◆ Tag

string VectSharp.Plots.Area< T >.Tag
getset

A tag to identify the area in the plot.

Definition at line 632 of file DataPoints.cs.


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