Difference between revisions of "Plot data with slider"

From JSXGraph Wiki
Jump to: navigation, search
Line 21: Line 21:
  
 
<jsxgraph width="600" height="250" box="box2">
 
<jsxgraph width="600" height="250" box="box2">
var brd2 = JXG.JSXGraph.initBoard('box2', {boundingbox:[0,50,1,-1], axis:true,  
+
var brd2 = JXG.JSXGraph.initBoard('box2', {boundingbox:[0,50,1.4,-1], axis:true,  
keepaspectratio:false});
+
keepaspectratio:false, showClearTraces:true});
  
var p = brd2.create('point', [ function() { return mu.Value();}, function() { return 1; }]);
+
var p = brd2.create('point', [  
 +
            function() { return mu.Value();},  
 +
            function() { return 1; }],
 +
            {trace: true});
  
  

Revision as of 09:47, 12 April 2014

The JavaScript code