Data plot: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 24: | Line 24: | ||
}; | }; | ||
var | 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,25000,-400],axis:true}); | ||
Line 41: | Line 40: | ||
<input type="button" value="plot data" onClick="plotData()"> | <input type="button" value="plot data" onClick="plotData()"> | ||
<input type="button" value="clear input" onClick="clearInput()"> | <input type="button" value="clear input" onClick="clearInput()"> | ||
<input type="button" value="clear all" onClick=" | <input type="button" value="clear all" onClick="clearBoard()"> | ||
<textarea id="in_data" cols=20 rows=15> | <textarea id="in_data" cols=20 rows=15> | ||
3591 ; 7612 | 3591 ; 7612 |