Team:Groningen/Graphs/DensityLimit

From 2009.igem.org

(Difference between revisions)
m
m
 
(18 intermediate revisions not shown)
Line 1: Line 1:
{
{
-
script: "var rhomedium=1000, rhovesicle=279.19; var d=[{title:'As',data:[],args:[]}]; for(var i=0; i<=100; i++) { var f=i/100; d[0].data.push({x:f,y:(rhomedium-f*rhovesicle)/(1-f)}); } d;",
+
script: "var rm=Number(document.getElementById('rhomedium').value),\
 +
            rv=Number(document.getElementById('rhovesicle').value),\
 +
            rhomedium=[rm,rm,1030,rm],\
 +
            rhovesicle=[279.19,rv,rv,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<d.length; j++) d[j].data.push({x:rhocell,y:1.0 - (rhomedium[j] - rhovesicle[j])/(rhocell - rhovesicle[j])});\
 +
        } d;",
width: '10cm',
width: '10cm',
height: '8cm',
height: '8cm',
-
{{defaultAxes|xtitle=volume fraction of vesicles|ytitle=maximum cell density (kg/m3)}},
+
axes: {x: {title: "cell density (kg/)", minorLabels: false}, y: {title: "volume fraction of vesicles", vertical: true, min:0} },
{{defaultPlot}}
{{defaultPlot}}
}
}

Latest revision as of 11:01, 14 September 2009

{ script: "var rm=Number(document.getElementById('rhomedium').value),\

            rv=Number(document.getElementById('rhovesicle').value),\
            rhomedium=[rm,rm,1030,rm],\
            rhovesicle=[279.19,rv,rv,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<d.length; j++) d[j].data.push({x:rhocell,y:1.0 - (rhomedium[j] - 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'} } }