Difference between revisions of "Data plot"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 1: | Line 1: | ||
<jsxgraph width="600" height="500"> | <jsxgraph width="600" height="500"> | ||
− | var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,- | + | var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-100,5000,25000,-400],axis:true}); |
− | var c = brd.create('curve',[[0 | + | var c = brd.create('curve',[[0],[0]],{strokeColor:'red'}); |
var plotData = function() { | var plotData = function() { | ||
Line 22: | Line 22: | ||
<input type="button" value="plot data" onClick="plotData()"> | <input type="button" value="plot data" onClick="plotData()"> | ||
<textarea id="in_data" cols=20 rows=15> | <textarea id="in_data" cols=20 rows=15> | ||
− | |||
− | |||
− | |||
</textarea> | </textarea> | ||
</form> | </form> | ||
</html> | </html> |