Difference between revisions of "Positioning of labels"

From JSXGraph Wiki
Jump to navigationJump to search
(Created page with "<jsxgraph width="6002 height="600"> var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-2,2,2,-2], axis:true, keepaspectratio:false}); var p = []; for (var i=0; i<4; i++) ...")
 
Line 1: Line 1:
<jsxgraph width="6002 height="600">
+
<jsxgraph width="600" height="600">
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-2,2,2,-2], axis:true, keepaspectratio:false});
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-2,2,2,-2], axis:true, keepaspectratio:false});
  
 
var p = [];
 
var p = [];
 
for (var i=0; i<4; i++) {
 
for (var i=0; i<4; i++) {
     p.push(brd.create('point', [Math.random()*3.6-1.8, Math.random()*3.6-1.8]);
+
     p.push(brd.create('point', [Math.random()*3.6-1.8, Math.random()*3.6-1.8]));
 
}
 
}
  

Revision as of 12:33, 3 November 2012