DownloadsDocumentationCommunityGalleryExtensions
The below examples can be downloaded as a ready to run eclipse project.

Tutorial 1: Drawing functions

The following sample code shows how to draw a function:

// Define a function to plot
Mapper mapper = new Mapper() {
    public double f(double x, double y) {
        return 10 * Math.sin(x / 10) * Math.cos(y / 20) * x;
    }
};

// Define range and precision for the function to plot
Range range = new Range(-150, 150);
int steps = 50;

// Create a surface drawing that function
Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(range, steps, range, steps), mapper);
surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(), surface.getBounds().getZmax(), new Color(1, 1, 1, .5f)));
surface.setFaceDisplayed(true);
surface.setWireframeDisplayed(false);
surface.setWireframeColor(Color.BLACK);

// Create a chart and add the surface
Chart chart = new Chart(Quality.Advanced);
chart.getScene().getGraph().add(surface);
ChartLauncher.openChart(chart);

Tutorial 2: Drawing scatter plots

You can easily represent a 3d scatter plot as follow
int size = 100000;
float x;
float y;
float z;
Coord3d[] points = new Coord3d[size];

// Create scatter points
for(int i=0; i<size; i++){
    x = (float)Math.random() - 0.5f;
    y = (float)Math.random() - 0.5f;
    z = (float)Math.random() - 0.5f;
    points[i] = new Coord3d(x, y, z);
}       

// Create a drawable scatter with a colormap
MultiColorScatter scatter = new MultiColorScatter( points, new ColorMapper( new ColorMapRainbow(), -0.5f, 0.5f ) );

// Create a chart and add scatter
Chart chart = new Chart();
chart.getAxeLayout().setMainColor(Color.WHITE);
chart.getView().setBackgroundColor(Color.BLACK);
chart.getScene().add(scatter);
ChartLauncher.openChart(chart);