Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Home

Pascal Lehwark

MLPlot is a lightweight plotting library written in Java. It produces vector graphics in the SVG format but can also save EPS, JPG, PNG,..(if convert and inkscape are installed). The goal is to imitate MATLAB's 2D plotting functionality.

See Demo-Code: Demo 1 Demo 2 Demo 3 Demo 4 Demo 5

Usage:

1. Instantiate an MLPlot object:
MLPlot p=new MLPlot();

2. Draw your data:
p.linePlot(new double[]{0.1,0.2,0.14},..styles..);...

3. Customize your plot:
p.setGrid(true);...

4. Save as SVG:
p.save(new File("test.svg"));

6. ..or as PNG,JPG,.. :
p.save(new File("test.png"));