Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 47: | Line 47: | ||
this.ctx= null; | this.ctx= null; | ||
this.draw_min_t= 0.0; | this.draw_min_t= 0.0; | ||
- | this.draw_max_t= | + | this.draw_max_t= 100.0; |
this.draw_min_v= 0.0; | this.draw_min_v= 0.0; | ||
this.draw_max_v= 100.0; | this.draw_max_v= 100.0; | ||
Line 398: | Line 398: | ||
var tstart= Math.floor(sim.draw_min_t/sim.timestep); | var tstart= Math.floor(sim.draw_min_t/sim.timestep); | ||
var tend= Math.ceil(sim.draw_max_t/sim.timestep); | var tend= Math.ceil(sim.draw_max_t/sim.timestep); | ||
+ | alert(simbox_drawXcoord(simid, ti*sim.timestep)); | ||
if(dta.length < 2) continue; | if(dta.length < 2) continue; | ||
Line 407: | Line 408: | ||
else | else | ||
ctx.moveTo( simbox_drawXcoord(simid, ti*sim.timestep), simbox_drawYcoord(simid, dta[ti]) ); | ctx.moveTo( simbox_drawXcoord(simid, ti*sim.timestep), simbox_drawYcoord(simid, dta[ti]) ); | ||
- | |||
} | } | ||
Revision as of 01:15, 3 August 2013