Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run the examples start JAS3, and from the welcome page follow the examples link. (If the welcome page is not automatically displayed use the Image Removed Image Added icon to display it).Image Removed

Image Added

From the examples page you can select the language you prefer.

...

Pnuts and Jython

Follow the Pnuts Example link to get to the list of examples (the following instructions also apply to Jython)

...

Choose one of the examples from the above list (in the picture below we chose CreateAndPlotHistograms.pnut).

Running the Pnuts or Jython examples is very straightforward: either use the File, Run menu item or use the Run item in the editor's popup menu, or just use the F2 key.

...

Each time you run a script a new Pnuts or Jython interpreter a console window is created. Once the script has completed you can type additional commands into the console to interrogate or operate on the objects created by the script. (You can also create a new interpreter console without first running a script by using the File, New, Pnuts Console or Jython Console menu item.).

Java

Running the Java examples is very similar to running the Pnuts or Jython scripts. As before you click on the file to open it in the editor, but in the case of Java you have to compile the code before you can run it. To compile a Java example use the File, Compile menu item or right click on the script and then select Compile or just use the F9 key.

Section
Column
width50%

Column
width50%

...