Difference between revisions of "Data plot"

From JSXGraph Wiki
Jump to navigationJump to search
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 01:29, 12 February 2010