// ALNOOR Documentation
Graphing is an essential part of statistics and data analysis.
This is why in ALNOOR 1.6, graphing capabilities were added.
Here is how to use it:
STD.STAT.LGRAPH
fn main() {
int[] xPoints = new double[101];
int[] yPoints = new double[101];
for (int i = -50; i <= 50; i++) xPoints[i + 50] = (i * 5); yPoints[i + 50] = (i * 5);
new LGraph (
xPoints, // X-Points
yPoints, // Y-Points
500, // Preferred width
500, // Preffered height
Color.BLACK // Point and axes colour
).draw();
}
To run the code, open a terminal and type:
lnrc -a path/to/main.lsmx path/to/config.vn
A window will popup with a graph; easily customisable and fast.
STD.STAT.LGRAPH
fn main() {
int[] xPoints = new double[101];
int[] yPoints = new double[101];
for (int i = -50; i <= 50; i++) xPoints[i + 50] = (i * 5); yPoints[i + 50] = (i * 5);
new LGraph (
xPoints, // X-Points
yPoints, // Y-Points
500, // Preferred width
500, // Preffered height
Color.BLACK // Point and axes colour
).draw();
}
lnrc -a path/to/main.lsmx path/to/config.vn