Model.xyplotonecurvemath#

Model.xyplotonecurvemath(function, outputname, xbased, factor)#

Performs a math function on a curve.

Parameters:
  • function (int) – The function being performed (7-14)

  • outputname (hwString) – The name of the output curve.

  • xbased (int) –

    0 - If the function should work on the y coordinate.

    1 - If the function should work on the x coordinate.

  • factor (double) – The factor to be used in the calculation.

Example#

Perfome a math function on y - coordinate of a curve#
import hm
import hm.entities as ent

model = hm.Model()

model.xyplotonecurvemath(function=7, outputname="math1", xbased=0, factor=0.2)