Menu

Home

Pascal Lehwark
There is a newer version of this page. You can find it here.

MLPlot is a very 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"));


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.