Team:Groningen/Graphs/DensityLimit
From 2009.igem.org
(Difference between revisions)
m |
(Added seawater line.) |
||
Line 1: | Line 1: | ||
{ | { | ||
- | script: "var rhomedium=Number(document.getElementById('rhomedium').value),\ | + | script: "var rhomedium=[Number(document.getElementById('rhomedium').value),Number(document.getElementById('rhomedium').value),1030,Number(document.getElementById('rhomedium').value)],\ |
rhovesicle=[279.19,Number(document.getElementById('rhovesicle').value),119.60];\ | rhovesicle=[279.19,Number(document.getElementById('rhovesicle').value),119.60];\ | ||
- | var d=[{title:'Li1998',data:[],args:{stroke: {color: '#F00'}}},{title:'Ours',data:[],args:{stroke: {color: '#0F0'}}},{title:'Walsby1994',data:[],args:{stroke: {color: '#00F'}}}];\ | + | var d=[{title:'Li1998',data:[],args:{stroke: {color: '#F00'}}},{title:'Ours',data:[],args:{stroke: {color: '#0F0'}}},{title:'Ours (seawater)',data:[],args:{stroke: {color: '#0F0', style: 'Dash'}}},{title:'Walsby1994',data:[],args:{stroke: {color: '#00F'}}}];\ |
for(var i=0; i<=50; i++) {\ | for(var i=0; i<=50; i++) {\ | ||
var rhocell=10*i+1000;\ | var rhocell=10*i+1000;\ |
Revision as of 10:58, 14 September 2009
{ script: "var rhomedium=[Number(document.getElementById('rhomedium').value),Number(document.getElementById('rhomedium').value),1030,Number(document.getElementById('rhomedium').value)],\
rhovesicle=[279.19,Number(document.getElementById('rhovesicle').value),119.60];\ var d=[{title:'Li1998',data:[],args:{stroke: {color: '#F00'}}},{title:'Ours',data:[],args:{stroke: {color: '#0F0'}}},{title:'Ours (seawater)',data:[],args:{stroke: {color: '#0F0', style: 'Dash'}}},{title:'Walsby1994',data:[],args:{stroke: {color: '#00F'}}}];\ for(var i=0; i<=50; i++) {\ var rhocell=10*i+1000;\ for(var j=0; j<3; j++) d[j].data.push({x:rhocell,y:1.0 - (rhomedium - rhovesicle[j])/(rhocell - rhovesicle[j])});\ } d;",
width: '10cm', height: '8cm', axes: {x: {title: "cell density (kg/m³)", minorLabels: false}, y: {title: "volume fraction of vesicles", vertical: true, min:0} }, plots: { 'default': {type: 'Lines'} } }