Difference between revisions of "Data plot"

From JSXGraph Wiki
Jump to navigationJump to search
Line 21: Line 21:
 
         if (y[i]<minY) minY = y[i];
 
         if (y[i]<minY) minY = y[i];
 
     }
 
     }
     brd.setBoundingBox([-100,maxY*1.01,maxX*1.05,minY*0.95]);
+
     brd.setBoundingBox([-1,maxY*1.01,maxX*1.05,minY*0.95]);
 
     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 29: Line 29:
 
var clearBoard = function() {
 
var clearBoard = function() {
 
     JXG.JSXGraph.freeBoard(brd);  
 
     JXG.JSXGraph.freeBoard(brd);  
     brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-400],axis:true});
+
     brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25,-400],axis:true});
 
     maxX = 0.0;
 
     maxX = 0.0;
 
     maxY = 0.0;
 
     maxY = 0.0;

Revision as of 08:40, 6 July 2011


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