yes it is right, i try use this but it mark a error
if (vals.length == 6) {
plot2.addPoint(i, vals[0]);
points1a.add(i, vals[1]*2);
plot2.addPoint(points1a,"layer 2" );
}
Error is
The method addPoint(GPoint, String) in the type GPlot is not applicable for the arguments (GPointsArray, String)