This is an example of a Java applet created using GsharpWE.
All the java code is created from a GSL script, profiles.gsl. The main contour plot is created in GsharpWE and then output in Java code by the Gsharp Java driver. The remaining code is written in GSL using the library libjava.gsl. For more information on this library and the Gsharp Java driver, please read Creating Java Applets in the GsharpWE User's Guide.
The data is a contour plot of some random scattered data. The data is interpolated into a regular grid and then written into the java code as a static variable. The locations of the viewports and the minimum and maximum of the profile axes are also passed. The mousedrag method uses these variables and the location of the mouse to draw the profiles into the profile viewports.
The example can be modified in the following ways:
Once you have modified profiles.gsl as you wish:
/bin/GsharpWE profiles.gsl
javac profApp.java
appletviewer prof.html