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

A plot element that draws a symbol at the location of multiple data points. More...

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

Public Member Functions

 ScatterPoints (IEnumerable< T > data, ICoordinateSystem< T > coordinateSystem)
 Creates a new ScatterPoints<T> instance, using the specified data and coordinateSystem . 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 at which the symbols will be drawn. More...
 
double Size = 2 [get, set]
 The size of the symbols to draw, in plot coordinates. More...
 
IDataPointElement DataPointElement = new PathDataPointElement() [get, set]
 The symbol that will be drawn (by default, a circle). 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 (stroke and fill colour, etc.) of the symbols. More...
 
string Tag [get, set]
 A tag to identify the symbols 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 draws a symbol at the location of multiple data points.

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

Definition at line 150 of file DataPoints.cs.

Constructor & Destructor Documentation

◆ ScatterPoints()

VectSharp.Plots.ScatterPoints< T >.ScatterPoints ( IEnumerable< T >  data,
ICoordinateSystem< T >  coordinateSystem 
)

Creates a new ScatterPoints<T> instance, using the specified data and coordinateSystem .

Parameters
dataThe data points at which the symbols will be drawn.
coordinateSystemThe coordinate system used to transform the points from data space to plot space.

Definition at line 188 of file DataPoints.cs.

Member Function Documentation

◆ Plot()

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

Parameters
targetThe Graphics on which to draw.

Implements VectSharp.Plots.IPlotElement.

Definition at line 195 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 170 of file DataPoints.cs.

◆ Data

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

The data points at which the symbols will be drawn.

Definition at line 155 of file DataPoints.cs.

◆ DataPointElement

The symbol that will be drawn (by default, a circle).

Definition at line 165 of file DataPoints.cs.

◆ PresentationAttributes

Presentation attributes determining the appearance (stroke and fill colour, etc.) of the symbols.

Definition at line 176 of file DataPoints.cs.

◆ Size

double VectSharp.Plots.ScatterPoints< T >.Size = 2
getset

The size of the symbols to draw, in plot coordinates.

Definition at line 160 of file DataPoints.cs.

◆ Tag

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

A tag to identify the symbols in the plot.

Definition at line 181 of file DataPoints.cs.


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