# Difference between revisions of "Ticks"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 1: | Line 1: | ||

<jsxgraph height="200" width="700" box="box1"> | <jsxgraph height="200" width="700" box="box1"> | ||

− | var brd1 = JXG.JSXGraph.initBoard('box1', {originX: 350, originY: 100, unitX: | + | var brd1 = JXG.JSXGraph.initBoard('box1', {originX: 350, originY: 100, unitX: 40, unitY: 40}); |

var ax1 = brd1.createElement('axis', [[0,0],[1,0]]); | var ax1 = brd1.createElement('axis', [[0,0],[1,0]]); | ||

brd1.createElement('ticks',[ax1,0.5], {majorTicks:3,majHeight:80,minHeight:3,strokeColor:'red'}); | brd1.createElement('ticks',[ax1,0.5], {majorTicks:3,majHeight:80,minHeight:3,strokeColor:'red'}); |