Class Plot2d
A 2D plot
public class Plot2d : UnmanagedObject, IDisposable
- Inheritance
-
Plot2d
- Implements
- Inherited Members
Constructors
Plot2d(IInputArray)
Create 2D plot from data
public Plot2d(IInputArray data)
Parameters
data
IInputArrayThe data to be plotted
Plot2d(IInputArray, IInputArray)
Create 2D plot for data
public Plot2d(IInputArray dataX, IInputArray dataY)
Parameters
dataX
IInputArrayThe data for the X-axis
dataY
IInputArrayThe data for the Y-axis
Methods
DisposeObject()
Release unmanaged memory associated with this plot2d.
protected override void DisposeObject()
Render(IOutputArray)
Render the plot to the resulting Mat
public void Render(IOutputArray result)
Parameters
result
IOutputArrayThe output plot
SetGridLinesNumber(int)
Grid Lines Number
public void SetGridLinesNumber(int value)
Parameters
value
intThe value
SetInvertOrientation(bool)
Invert Orientation
public void SetInvertOrientation(bool value)
Parameters
value
boolThe value
SetMaxX(double)
Max X
public void SetMaxX(double value)
Parameters
value
doubleThe value
SetMaxY(double)
Max Y
public void SetMaxY(double value)
Parameters
value
doubleThe value
SetMinX(double)
Min X
public void SetMinX(double value)
Parameters
value
doubleThe value
SetMinY(double)
Min Y
public void SetMinY(double value)
Parameters
value
doubleThe value
SetNeedPlotLine(bool)
Need Plot Line
public void SetNeedPlotLine(bool value)
Parameters
value
boolThe value
SetPlotAxisColor(MCvScalar)
Set the axis color
public void SetPlotAxisColor(MCvScalar plotAxisColor)
Parameters
plotAxisColor
MCvScalarthe axis color
SetPlotBackgroundColor(MCvScalar)
Set the background color
public void SetPlotBackgroundColor(MCvScalar plotBackgroundColor)
Parameters
plotBackgroundColor
MCvScalarThe background color
SetPlotGridColor(MCvScalar)
Set the plot grid color
public void SetPlotGridColor(MCvScalar plotGridColor)
Parameters
plotGridColor
MCvScalarThe plot grid color
SetPlotLineColor(MCvScalar)
Set the line color
public void SetPlotLineColor(MCvScalar plotLineColor)
Parameters
plotLineColor
MCvScalarThe plot line color
SetPlotLineWidth(int)
Plot line width
public void SetPlotLineWidth(int value)
Parameters
value
intThe value
SetPlotSize(int, int)
Set the plot size
public void SetPlotSize(int width, int height)
Parameters
SetPlotTextColor(MCvScalar)
Set the plot text color
public void SetPlotTextColor(MCvScalar plotTextColor)
Parameters
plotTextColor
MCvScalarThe plot text color
SetPointIdxToPrint(int)
Sets the index of a point which coordinates will be printed on the top left corner of the plot (if ShowText flag is true)
public void SetPointIdxToPrint(int value)
Parameters
value
intThe value
SetShowGrid(bool)
Show Grid
public void SetShowGrid(bool value)
Parameters
value
boolThe value
SetShowText(bool)
Show Text
public void SetShowText(bool value)
Parameters
value
boolThe value