Graph.addCurve


addCurve([X], [Y], [factorX], [factorY])

Add a curve to an existing graph. If no input is given, an empty curve is added for later modification. If either x or y is specified, both must be. In each case, data can be specified as the name, ID, or a pointer to an Dataset object, or a raw array of real numbers. There is no requirement to provide x data in the same format as y data, but the number of data points must be the same. Optionally a multiplication factor may be given, which can be used to exagerate the y values (it has no effect on the x values)

Xoptional graph dataset The name or ID of a graph dataset, or a pointer to a Dataset object. graph dataset for X
Yoptional graph dataset The name or ID of a graph dataset, or a pointer to a Dataset object. graph dataset for Y
factorXoptional double multiplier for X
factorYoptional double multiplier for Y
Return valueIFCurveThe curve created

Back to Graph

Back to Overview