C# 클래스 NPlot.ImagePlot

Encapsulates functionality for plotting data as a 2D image chart.
상속: IPlot
파일 보기 프로젝트 열기: mono/nplot-gtk 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draw on to the supplied graphics surface against the supplied axes.

TODO: block positions may be off by a pixel or so. maybe. Re-think calculations

DrawInLegend ( Graphics g, Rectangle startEnd ) : void

Draws a representation of this plot in the legend.

ImagePlot ( double data ) : System

Constructor

ImagePlot ( double data, double xStart, double xStep, double yStart, double yStep ) : System

Constructor

no adapters for this yet - when we get some more 2d plotting functionality, then perhaps create some.

SuggestXAxis ( ) : Axis

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

SuggestYAxis ( ) : Axis

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

WriteData ( System sb, RectangleD region, bool onlyInRegion ) : void

Write data associated with the plot as text.

TODO: not implemented.

비공개 메소드들

메소드 설명
calculateMinMax ( ) : void

Calculates the minimum and maximum values of the data array.

메소드 상세

Draw() 공개 메소드

Draw on to the supplied graphics surface against the supplied axes.
TODO: block positions may be off by a pixel or so. maybe. Re-think calculations
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System.Drawing.Graphics The graphics surface on which to draw.
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
리턴 void

DrawInLegend() 공개 메소드

Draws a representation of this plot in the legend.
public DrawInLegend ( Graphics g, Rectangle startEnd ) : void
g System.Drawing.Graphics The graphics surface on which to draw.
startEnd System.Drawing.Rectangle A rectangle specifying the bounds of the area in the legend set aside for drawing.
리턴 void

ImagePlot() 공개 메소드

Constructor
public ImagePlot ( double data ) : System
data double The 2D array to plot.
리턴 System

ImagePlot() 공개 메소드

Constructor
no adapters for this yet - when we get some more 2d plotting functionality, then perhaps create some.
public ImagePlot ( double data, double xStart, double xStep, double yStart, double yStep ) : System
data double the 2D array to plot
xStart double the world value corresponding to the 1st position in the x-direction
xStep double the world step size between pixels in the x-direction.
yStart double the world value corresponding to the 1st position in the y-direction
yStep double the world step size between pixels in the y-direction.
리턴 System

SuggestXAxis() 공개 메소드

Returns an x-axis that is suitable for drawing this plot.
public SuggestXAxis ( ) : Axis
리턴 Axis

SuggestYAxis() 공개 메소드

Returns a y-axis that is suitable for drawing this plot.
public SuggestYAxis ( ) : Axis
리턴 Axis

WriteData() 공개 메소드

Write data associated with the plot as text.
TODO: not implemented.
public WriteData ( System sb, RectangleD region, bool onlyInRegion ) : void
sb System the string builder to write to.
region RectangleD Only write out data in this region if onlyInRegion is true.
onlyInRegion bool If true, only data in region is written, else all data is written.
리턴 void