Plot2d

Objective-C

@interface Plot2d : Algorithm

Swift

class Plot2d : Algorithm

plot Plot function for Mat data

Member of Plot

Methods

  • Creates Plot2d object

    Declaration

    Objective-C

    + (nonnull Plot2d *)create:(nonnull Mat *)data;

    Swift

    class func create(data: Mat) -> Plot2d

    Parameters

    data

    1xN
    or
    Nx1
    matrix containing
    Y
    values of points to plot.
    X
    values will be equal to indexes of correspondind elements in data matrix.

  • Creates Plot2d object

    Declaration

    Objective-C

    + (nonnull Plot2d *)create:(nonnull Mat *)dataX dataY:(nonnull Mat *)dataY;

    Swift

    class func create(dataX: Mat, dataY: Mat) -> Plot2d

    Parameters

    dataX

    1xN
    or
    Nx1
    matrix
    X
    values of points to plot.

    dataY

    1xN
    or
    Nx1
    matrix containing
    Y
    values of points to plot.

  • Declaration

    Objective-C

    - (void)render:(Mat*)_plotResult NS_SWIFT_NAME(render(_plotResult:));

    Swift

    func render(_plotResult: Mat)
  • Declaration

    Objective-C

    - (void)setGridLinesNumber:(int)gridLinesNumber NS_SWIFT_NAME(setGridLinesNumber(gridLinesNumber:));

    Swift

    func setGridLinesNumber(gridLinesNumber: Int32)
  • Declaration

    Objective-C

    - (void)setInvertOrientation:(BOOL)_invertOrientation NS_SWIFT_NAME(setInvertOrientation(_invertOrientation:));

    Swift

    func setInvertOrientation(_invertOrientation: Bool)
  • Declaration

    Objective-C

    - (void)setMaxX:(double)_plotMaxX NS_SWIFT_NAME(setMaxX(_plotMaxX:));

    Swift

    func setMaxX(_plotMaxX: Double)
  • Declaration

    Objective-C

    - (void)setMaxY:(double)_plotMaxY NS_SWIFT_NAME(setMaxY(_plotMaxY:));

    Swift

    func setMaxY(_plotMaxY: Double)
  • Declaration

    Objective-C

    - (void)setMinX:(double)_plotMinX NS_SWIFT_NAME(setMinX(_plotMinX:));

    Swift

    func setMinX(_plotMinX: Double)
  • Declaration

    Objective-C

    - (void)setMinY:(double)_plotMinY NS_SWIFT_NAME(setMinY(_plotMinY:));

    Swift

    func setMinY(_plotMinY: Double)
  • Switches data visualization mode

    Declaration

    Objective-C

    - (void)setNeedPlotLine:(BOOL)_needPlotLine;

    Swift

    func setNeedPlotLine(_needPlotLine: Bool)

    Parameters

    _needPlotLine

    if true then neighbour plot points will be connected by lines. In other case data will be plotted as a set of standalone points.

  • Declaration

    Objective-C

    - (void)setPlotAxisColor:(Scalar*)_plotAxisColor NS_SWIFT_NAME(setPlotAxisColor(_plotAxisColor:));

    Swift

    func setPlotAxisColor(_plotAxisColor: Scalar)
  • Declaration

    Objective-C

    - (void)setPlotBackgroundColor:(Scalar*)_plotBackgroundColor NS_SWIFT_NAME(setPlotBackgroundColor(_plotBackgroundColor:));

    Swift

    func setPlotBackgroundColor(_plotBackgroundColor: Scalar)
  • Declaration

    Objective-C

    - (void)setPlotGridColor:(Scalar*)_plotGridColor NS_SWIFT_NAME(setPlotGridColor(_plotGridColor:));

    Swift

    func setPlotGridColor(_plotGridColor: Scalar)
  • Declaration

    Objective-C

    - (void)setPlotLineColor:(Scalar*)_plotLineColor NS_SWIFT_NAME(setPlotLineColor(_plotLineColor:));

    Swift

    func setPlotLineColor(_plotLineColor: Scalar)
  • Declaration

    Objective-C

    - (void)setPlotLineWidth:(int)_plotLineWidth NS_SWIFT_NAME(setPlotLineWidth(_plotLineWidth:));

    Swift

    func setPlotLineWidth(_plotLineWidth: Int32)
  • Declaration

    Objective-C

    - (void)setPlotSize:(int)_plotSizeWidth _plotSizeHeight:(int)_plotSizeHeight NS_SWIFT_NAME(setPlotSize(_plotSizeWidth:_plotSizeHeight:));

    Swift

    func setPlotSize(_plotSizeWidth: Int32, _plotSizeHeight: Int32)
  • Declaration

    Objective-C

    - (void)setPlotTextColor:(Scalar*)_plotTextColor NS_SWIFT_NAME(setPlotTextColor(_plotTextColor:));

    Swift

    func setPlotTextColor(_plotTextColor: Scalar)
  • Sets the index of a point which coordinates will be printed on the top left corner of the plot (if ShowText flag is true).

    Declaration

    Objective-C

    - (void)setPointIdxToPrint:(int)pointIdx;

    Swift

    func setPointIdxToPrint(pointIdx: Int32)

    Parameters

    pointIdx

    index of the required point in data array.

  • Declaration

    Objective-C

    - (void)setShowGrid:(BOOL)needShowGrid NS_SWIFT_NAME(setShowGrid(needShowGrid:));

    Swift

    func setShowGrid(needShowGrid: Bool)
  • Declaration

    Objective-C

    - (void)setShowText:(BOOL)needShowText NS_SWIFT_NAME(setShowText(needShowText:));

    Swift

    func setShowText(needShowText: Bool)