Difference between revisions of "Ticks"

From JSXGraph Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
<jsxgraph height="200" width="600" box="box1">
 
<jsxgraph height="200" width="600" box="box1">
var brd1 = JXG.JSXGraph.initBoard('box1', {originX: 250, originY: 100, unitX: 25, unitY: 25});
+
var brd1 = JXG.JSXGraph.initBoard('box1', {originX: 250, originY: 100, unitX: 50, unitY: 50});
 
var ax1 = brd1.createElement('axis', [[0,0],[1,0]]);
 
var ax1 = brd1.createElement('axis', [[0,0],[1,0]]);
 
brd1.createElement('ticks',[ax1,0.5], {strokeColor:'red'});
 
brd1.createElement('ticks',[ax1,0.5], {strokeColor:'red'});

Revision as of 11:03, 13 March 2009