This is a sample
JavaScript
interface to Ptplot that allows the user to adjust various Ptplot parameters.
To bring up a sample plot, change the various settings and then click
on the Plot button.
To get a description of the various fields, click on the name
of field to get to the
Help for the Ptplot page.
See also the Limitations
section below.
How it works
The HTML file includes
Ptplot.js
which contains JavaScript code.
When the Plot button is clicked,
the JavaScript ptplot() function is passed the form.
The ptplot() function generates HTML that reflects the
settings in the form. The generated HTML includes the <APPLET
tag.
Since the PlotApplet class does not inherit from
the Plot class, we have to update the pxgraphargs
applet parameter with the data from the form. If we had more direct access
to the public methods of the Plot class, then we could have a
Plot on this page and modify the format on the fly.
Note that the About button in the generated HTML
implemented by having JavaScript call the getAppletInfo()
public method.