A DataGraph can be scripted to display many functions. Use the following methods
to change the display:
- Use addFunction(String str) to add another functions to a
graph. This method will return an integer id that can be used to
access the functions properties.
- Use changeFunctionString(int id, String str) to change a function
that is already being plotted.
- Use deleteAllFunctions() to remove all functions from the plot.
- Use deleteFunction(int id) to remove the function with a given id
from the plot.
- Use setRGB(int id, int r, int g, int b) to change the color of a
function.
Caution: If you add the same function more than once, you will
only see one function since the second function will be drawn on top of the first
function.