Data plot: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 18: Line 18:
         if (y[i]>maxY) maxY = y[i];
         if (y[i]>maxY) maxY = y[i];
     }
     }
     brd.setBoundingBox([-100,maxY,maxX,-400]);
     brd.setBoundingBox([-100,maxY*1.01,maxX*1.01,-400]);
     var c = brd.create('curve',[x,y],{strokeColor:color[nr%color.length]});
     var c = brd.create('curve',[x,y],{strokeColor:color[nr%color.length]});
     nr++;
     nr++;
Line 39: Line 39:
<input type="button" value="clear all" onClick="clear()">
<input type="button" value="clear all" onClick="clear()">
<textarea id="in_data" cols=20 rows=15>
<textarea id="in_data" cols=20 rows=15>
3591 ; 7612  
3591 ; 7612  
  3587 ; 7632  
  3587 ; 7632  
  3594 ; 7640  
  3594 ; 7640  

Revision as of 23:29, 11 February 2010