C# Class NPlot.LinePlot

Encapsulates functionality for plotting data as a line chart.
Inheritance: IPlot
Exibir arquivo Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draws the line plot on a GDI+ surface against the provided x and y axes.

LinePlot ( IList yData, IList xData ) : System

Constructor

SuggestXAxis ( ) : DateTimeAxis

Returns an x-axis that is suitable for drawing this plot.

SuggestYAxis ( ) : LinearAxis

Returns a y-axis that is suitable for drawing this plot.

Method Details

Draw() public method

Draws the line plot on a GDI+ surface against the provided x and y axes.
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System.Drawing.Graphics The GDI+ surface on which to draw.
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
return void

LinePlot() public method

Constructor
public LinePlot ( IList yData, IList xData ) : System
yData IList the ordinate data to associate with this plot.
xData IList the abscissa data to associate with this plot.
return System

SuggestXAxis() public method

Returns an x-axis that is suitable for drawing this plot.
public SuggestXAxis ( ) : DateTimeAxis
return DateTimeAxis

SuggestYAxis() public method

Returns a y-axis that is suitable for drawing this plot.
public SuggestYAxis ( ) : LinearAxis
return LinearAxis