Team:Groningen/Graphs/DensityLimit

From 2009.igem.org

(Difference between revisions)
m (Trying out multiline script.)
(Now shows required fraction of vesicles.)
Line 1: Line 1:
{
{
script: "var rhomedium=Number(document.getElementById('rhomedium').value),\
script: "var rhomedium=Number(document.getElementById('rhomedium').value),\
-
             rhovesicle=Number(document.getElementById('rhovesicle').value);\
+
             rhovesicle=Number(document.getElementById('rhovesicle').value),\
-
         var d=[{title:'As',data:[],args:[]}];\
+
            rhocell=Number(document.getElementById('rhocell').value);\
 +
         var d=[{title:'',data:[],args:[]}];\
         for(var i=0; i<=50; i++) {\
         for(var i=0; i<=50; i++) {\
-
           var f=i/100;\
+
           var f=10*i+1000;\
-
           d[0].data.push({x:f,y:(rhomedium-f*rhovesicle)/(1-f)});\
+
           d[0].data.push({x:f,y:1.0 - (rhomedium - rhovesicle)/(rhocell - rhovesicle)});\
         } d;",
         } d;",
width: '10cm',
width: '10cm',
height: '8cm',
height: '8cm',
-
axes: {x: {title: "volume fraction of vesicles", minorLabels: false}, y: {title: "maximum cell density (kg/m3)", vertical: true} },
+
axes: {x: {title: "cell density (kg/m³)", minorLabels: false}, y: {title: "volume fraction of vesicles", vertical: true, min:0, max:1} },
{{defaultPlot}}
{{defaultPlot}}
}
}

Revision as of 12:37, 9 September 2009

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

            rhovesicle=Number(document.getElementById('rhovesicle').value),\
            rhocell=Number(document.getElementById('rhocell').value);\
        var d=[{title:,data:[],args:[]}];\
        for(var i=0; i<=50; i++) {\
          var f=10*i+1000;\
          d[0].data.push({x:f,y:1.0 - (rhomedium - rhovesicle)/(rhocell - rhovesicle)});\
        } d;",

width: '10cm', height: '8cm', axes: {x: {title: "cell density (kg/m³)", minorLabels: false}, y: {title: "volume fraction of vesicles", vertical: true, min:0, max:1} }, plots: { 'default': {type: 'Lines'} } }