Ticks: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
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'});
brd1.createElement('ticks',[ax1,[-4.2,4.2]], {strokeColor:'yellow'});
brd1.createElement('ticks',[ax1,[-4.2,4.2]], {strokeColor:'black'});
brd1.fullUpdate=true; brd1.update(); brd1.fullUpdate=false;  
brd1.fullUpdate=true; brd1.update(); brd1.fullUpdate=false;  
</jsxgraph>
</jsxgraph>

Revision as of 09:15, 13 March 2009