Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 419: Line 419:
                 thisdatax[i] = parseFloat(thisdatax[i]);
                 thisdatax[i] = parseFloat(thisdatax[i]);
                 data[index].data.push([thisdatax[i], thisdatay[i]])
                 data[index].data.push([thisdatax[i], thisdatay[i]])
-
errbars_2d[index].data.push([thisdatax[i], thisdatay[i]+thisdataerr[i]*2])
+
errbars_2d[index].data.push([thisdatax[i], thisdatay[i]+thisdataerr[i]])
-
errbars_2d[index].data.push([thisdatax[i], thisdatay[i]-thisdataerr[i]*2])
+
errbars_2d[index].data.push([thisdatax[i], thisdatay[i]-thisdataerr[i]])
errbars_2d[index].data.push([null, null])
errbars_2d[index].data.push([null, null])
             }
             }
Line 535: Line 535:
thisdatax[i%thisdatax.length]/axisdimensions[1]*100,
thisdatax[i%thisdatax.length]/axisdimensions[1]*100,
thisdatay[Math.floor(i/thisdatax.length)]/axisdimensions[3]*100,
thisdatay[Math.floor(i/thisdatax.length)]/axisdimensions[3]*100,
-
thisdataz[i]/axisdimensions[5]*100-thisdataerr[i]/axisdimensions[5]*100*2
+
thisdataz[i]/axisdimensions[5]*100-thisdataerr[i]/axisdimensions[5]*100
)));
)));
errbargeom.vertices.push(new THREE.Vertex(new THREE.Vector3(
errbargeom.vertices.push(new THREE.Vertex(new THREE.Vector3(
thisdatax[i%thisdatax.length]/axisdimensions[1]*100,
thisdatax[i%thisdatax.length]/axisdimensions[1]*100,
thisdatay[Math.floor(i/thisdatax.length)]/axisdimensions[3]*100,
thisdatay[Math.floor(i/thisdatax.length)]/axisdimensions[3]*100,
-
thisdataz[i]/axisdimensions[5]*100+thisdataerr[i]/axisdimensions[5]*100*2
+
thisdataz[i]/axisdimensions[5]*100+thisdataerr[i]/axisdimensions[5]*100
)));
)));
var errbar = new THREE.Line(errbargeom, lineMat);
var errbar = new THREE.Line(errbargeom, lineMat);

Revision as of 00:39, 28 September 2011