This is the code that takes a Plots::Plot and creates a JSXGraph graph of the plot.
Plots::Plot
See plots.pl for more details.