Data plot: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 15: Line 15:
     for (i=0;i<data.length-1;i++) {
     for (i=0;i<data.length-1;i++) {
         d = data[i].split(';');
         d = data[i].split(';');
         x[i] = d[1]*1.0;
         x[i] = d[0]*1.0;
         y[i] = d[0]*1.0;
         y[i] = d[1]*1.0;
         if (x[i]>maxX) maxX = x[i];
         if (x[i]>maxX) maxX = x[i];
         if (y[i]>maxY) maxY = y[i];
         if (y[i]>maxY) maxY = y[i];

Revision as of 07:40, 6 July 2011


Spalte 1: y-Koordinate, Spalte 2: x-Koordinate