Bounding box

From JSXGraph Wiki
Revision as of 00:01, 24 June 2009 by A WASSERMANN (talk | contribs)
Jump to navigationJump to search

We can supply a bounding box to specify the dimensions of the drawing panel. The JavaScript code

var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,10,5,-2], axis:true});

sets the vertical and horizontal units and the position of the origin such that the upper left corner of the drawing panel has position (-5,10) and the lower right corner of the drawing panel has position (5,-2).