FORMULA_CURVE
This element creates a curve defined by a mathematical formula (y=f(x)).
Attributes brief detailed show all inherited
Name | Description | Default | |||
---|---|---|---|---|---|
formula | Mathematical formula for the curve | empty | |||
variable | name of the "x" variable in the formula | x | |||
Events | |||||
value_changed | the event is triggered anytime the value of the object has changed |
See the CURVE element attributes. The FORMULA_CURVE element does not have the persistent attribute since its value is computed automatically.
Specific Attributes
Examples
The code below creates a curve ("my_curve") that can be displayed on a graph. The name of the variable used in the formula is customized ("z").
- <FORMULA_CURVE id="my_curve" formula="cos(z)" variable="z"/>