Create and Edit 2-Dimensional Plots
You can run a script inside a graph, which draws inside the graph. You can do this with almost any graph from an analysis platform, or you can create your own new graphs. In both cases, you are storing a JSL script inside a graph, and the script runs each time you display the graph.
For scripting 3-dimensional plots, see the chapter “Three-Dimensional Scenes”