Skip to content

Commit 1844f37

Browse files
committed
Convert ModelSim to new sizes
1 parent 9ad081f commit 1844f37

5 files changed

Lines changed: 110 additions & 110 deletions

File tree

Curricular Models/ModelSim/Evolution/Bacteria Food Hunt.nlogox

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ end
477477
; Copyright 2015 Uri Wilensky.
478478
; See Info tab for full copyright and license.]]></code>
479479
<widgets>
480-
<view x="295" wrappingAllowedX="true" y="115" frameRate="30.0" minPycor="-18" height="448" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="808" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="33" minPxcor="-33"></view>
481-
<button x="5" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="135" sizeVersion="0">setup</button>
482-
<button x="145" y="10" height="35" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="140" sizeVersion="0">go</button>
483-
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# bugs" y="315" xMin="0.0" height="140" legend="false" xMax="8.0" yMin="0.0" xAxis="# of flagella" display="Bacteria Population in Left Region" width="280" sizeVersion="0">
480+
<view x="295" wrappingAllowedX="true" y="150" frameRate="30.0" minPycor="-18" height="448" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="808" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="33" minPxcor="-33"></view>
481+
<button x="5" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="135">setup</button>
482+
<button x="145" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="140" display="go/stop">go</button>
483+
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# bugs" y="426" xMin="0.0" height="175" legend="false" xMax="8.0" yMin="0.0" width="280" xAxis="# of flagella" display="Bacteria Population in Left Region">
484484
<setup></setup>
485485
<update><![CDATA[;; the HISTOGRAM primitive can't make a multi-colored histogram,
486486
;; so instead we plot each bar individually
@@ -515,7 +515,7 @@ if ( plot-y-max - floor plot-y-max) != 0 [set-plot-y-range 0 floor plot-y-max +
515515
<update>plotxy 6 count bacteria with [variation = 6 and region = 1]</update>
516516
</pen>
517517
</plot>
518-
<plot x="5" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="flagella" y="170" xMin="0.0" height="140" legend="true" xMax="1000.0" yMin="1.0" xAxis="time" display="Avg. # of flagella vs. Time" width="280" sizeVersion="0">
518+
<plot x="5" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="flagella" y="230" xMin="0.0" height="191" legend="true" xMax="1000.0" yMin="1.0" width="280" xAxis="time" display="Avg. # of flagella vs. Time">
519519
<setup></setup>
520520
<update></update>
521521
<pen interval="1.0" mode="0" display="left" color="-7500403" legend="true">
@@ -529,9 +529,9 @@ if ( plot-y-max - floor plot-y-max) != 0 [set-plot-y-range 0 floor plot-y-max +
529529
plotxy ticks mean [variation] of bacteria with [region = 2]]</update>
530530
</pen>
531531
</plot>
532-
<monitor x="520" precision="0" y="55" height="45" fontSize="11" display="bacteria" width="60" sizeVersion="0">(count bacteria with [region = 1])</monitor>
533-
<slider x="5" step="1" y="48" max="10" display="initial-#-bacteria-per-variation" height="33" min="1" direction="Horizontal" default="3.0" variable="initial-#-bacteria-per-variation" width="280" sizeVersion="0"></slider>
534-
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# bugs" y="455" xMin="0.0" height="135" legend="false" xMax="8.0" yMin="0.0" xAxis="# of flagella" display="Bacteria Population in Right Region" width="280" sizeVersion="0">
532+
<monitor x="520" precision="0" y="62" height="60" fontSize="11" width="100" display="bacteria">(count bacteria with [region = 1])</monitor>
533+
<slider x="5" step="1" y="55" max="10" width="280" display="initial-#-bacteria-per-variation" height="50" min="1" direction="Horizontal" default="3.0" variable="initial-#-bacteria-per-variation"></slider>
534+
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# bugs" y="606" xMin="0.0" height="175" legend="false" xMax="8.0" yMin="0.0" width="280" xAxis="# of flagella" display="Bacteria Population in Right Region">
535535
<setup></setup>
536536
<update><![CDATA[;; the HISTOGRAM primitive can't make a multi-colored histogram,
537537
;; so instead we plot each bar individually
@@ -566,36 +566,36 @@ if ( plot-y-max - floor plot-y-max) != 0 [set-plot-y-range 0 floor plot-y-max +
566566
<update>plotxy 6 count bacteria with [variation = 6 and region = 2]</update>
567567
</pen>
568568
</plot>
569-
<slider x="295" step="1" y="80" max="100" display="left-resource-distribution" height="33" min="0" direction="Horizontal" default="100.0" variable="left-resource-distribution" units="%" width="220" sizeVersion="0"></slider>
570-
<slider x="5" step=".05" y="85" max=".50" display="energy-cost-per-flagella" height="33" min=".05" direction="Horizontal" default="0.25" variable="energy-cost-per-flagella" width="280" sizeVersion="0"></slider>
571-
<chooser x="5" y="120" height="45" variable="visualize-variation" current="0" display="visualize-variation" width="145" sizeVersion="0">
569+
<slider x="295" step="1" y="95" max="100" width="220" display="left-resource-distribution" height="50" min="0" direction="Horizontal" default="100.0" variable="left-resource-distribution" units="%"></slider>
570+
<slider x="5" step=".05" y="110" max=".50" width="280" display="energy-cost-per-flagella" height="50" min=".05" direction="Horizontal" default="0.25" variable="energy-cost-per-flagella"></slider>
571+
<chooser x="5" y="165" height="60" variable="visualize-variation" current="0" width="145" display="visualize-variation">
572572
<choice type="string" value="flagella and color"></choice>
573573
<choice type="string" value="flagella only"></choice>
574574
<choice type="string" value="as color only"></choice>
575575
<choice type="string" value="none"></choice>
576576
</chooser>
577-
<slider x="825" step="1" y="80" max="100" display="right-resource-distribution" height="33" min="0" direction="Horizontal" default="0.0" variable="right-resource-distribution" units="%" width="215" sizeVersion="0"></slider>
578-
<chooser x="295" y="30" height="45" variable="left-resource-location" current="0" display="left-resource-location" width="220" sizeVersion="0">
577+
<slider x="865" step="1" y="95" max="100" width="215" display="right-resource-distribution" height="50" min="0" direction="Horizontal" default="0.0" variable="right-resource-distribution" units="%"></slider>
578+
<chooser x="295" y="30" height="60" variable="left-resource-location" current="0" width="220" display="left-resource-location">
579579
<choice type="string" value="anywhere"></choice>
580580
<choice type="string" value="around a central point"></choice>
581581
<choice type="string" value="horizontal strip"></choice>
582582
<choice type="string" value="vertical strip left side"></choice>
583583
<choice type="string" value="vertical strip right side"></choice>
584584
</chooser>
585-
<chooser x="825" y="30" height="45" variable="right-resource-location" current="1" display="right-resource-location" width="215" sizeVersion="0">
585+
<chooser x="865" y="30" height="60" variable="right-resource-location" current="1" width="215" display="right-resource-location">
586586
<choice type="string" value="anywhere"></choice>
587587
<choice type="string" value="around a central point"></choice>
588588
<choice type="string" value="horizontal strip"></choice>
589589
<choice type="string" value="vertical strip left side"></choice>
590590
<choice type="string" value="vertical strip right side"></choice>
591591
</chooser>
592-
<monitor x="1045" precision="17" y="50" height="45" fontSize="11" display="bacteria" width="60" sizeVersion="0">(count bacteria with [region = 2])</monitor>
593-
<note x="900" y="10" height="18" backgroundDark="0" fontSize="13" width="90" markdown="false" textColorLight="-16777216" backgroundLight="0">Right Region</note>
594-
<note x="360" y="10" height="18" backgroundDark="0" fontSize="13" width="105" markdown="false" textColorLight="-9276814" backgroundLight="0">Left Region</note>
595-
<switch x="155" y="120" height="33" on="false" variable="trace-paths?" display="trace-paths?" width="130" sizeVersion="0"></switch>
596-
<button x="605" y="80" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="&gt;&gt; Duplicate Bacteria &gt;&gt;" width="190" sizeVersion="0">duplicate-population 1</button>
597-
<button x="605" y="45" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="&lt;&lt; Duplicate Bacteria &lt;&lt;" width="190" sizeVersion="0">duplicate-population 2</button>
598-
<switch x="605" y="10" height="33" on="false" variable="wait-to-drag-bacteria?" display="wait-to-drag-bacteria?" width="190" sizeVersion="0"></switch>
592+
<monitor x="1085" precision="17" y="50" height="60" fontSize="11" width="100" display="bacteria">(count bacteria with [region = 2])</monitor>
593+
<note x="900" y="10" backgroundDark="0" fontSize="13" width="90" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Right Region</note>
594+
<note x="360" y="10" backgroundDark="0" fontSize="13" width="105" markdown="false" height="18" textColorDark="-1" textColorLight="-9276814" backgroundLight="0">Left Region</note>
595+
<button x="645" y="100" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="190" display="&gt;&gt; Duplicate Bacteria &gt;&gt;">duplicate-population 1</button>
596+
<button x="645" y="55" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="190" display="&lt;&lt; Duplicate Bacteria &lt;&lt;">duplicate-population 2</button>
597+
<switch x="645" y="10" height="40" on="false" variable="wait-to-drag-bacteria?" width="190" display="wait-to-drag-bacteria?"></switch>
598+
<switch x="155" y="165" height="60" on="false" variable="trace-paths?" width="130" display="trace-paths?"></switch>
599599
</widgets>
600600
<info><![CDATA[## WHAT IS IT?
601601

Curricular Models/ModelSim/Evolution/Bacteria Hunt Speeds.nlogox

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ end
195195
; See Info tab for full copyright and license.]]></code>
196196
<widgets>
197197
<view x="280" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-14" height="468" showTickCounter="true" patchSize="16.0" fontSize="10" wrappingAllowedY="true" width="468" tickCounterLabel="ticks" maxPycor="14" updateMode="1" maxPxcor="14" minPxcor="-14"></view>
198-
<button x="10" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="125" sizeVersion="0">setup</button>
199-
<button x="145" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/pause" width="125" sizeVersion="0">go</button>
200-
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# of bacteria" y="350" xMin="0.0" height="155" legend="false" xMax="8.0" yMin="0.0" xAxis="# of flagella" display="# of bacteria for each variation" width="260" sizeVersion="0">
198+
<button x="10" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125">setup</button>
199+
<button x="145" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="125" display="go/pause">go</button>
200+
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="# of bacteria" y="427" xMin="0.0" height="175" legend="false" xMax="8.0" yMin="0.0" width="260" xAxis="# of flagella" display="# of bacteria for each variation">
201201
<setup></setup>
202202
<update><![CDATA[;; the HISTOGRAM primitive can't make a multi-colored histogram,
203203
;; so instead we plot each bar individually
@@ -231,24 +231,24 @@ foreach [1 2 3 4 5 6] [ this-variation ->
231231
<update></update>
232232
</pen>
233233
</plot>
234-
<plot x="10" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="# of flagella" y="190" xMin="0.0" height="155" legend="false" xMax="1000.0" yMin="1.0" xAxis="time" display="Avg. # of flagella per bacteria" width="260" sizeVersion="0">
234+
<plot x="10" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="# of flagella" y="247" xMin="0.0" height="175" legend="false" xMax="1000.0" yMin="1.0" width="260" xAxis="time" display="Avg. # of flagella per bacteria">
235235
<setup></setup>
236236
<update></update>
237237
<pen interval="1.0" mode="0" display="pen 1" color="-16777216" legend="true">
238238
<setup></setup>
239239
<update>if any? bacteria [plotxy ticks mean [variation] of bacteria ]</update>
240240
</pen>
241241
</plot>
242-
<slider x="10" step="1" y="50" max="10" display="initial-bacteria-per-variation" height="33" min="1" direction="Horizontal" default="5.0" variable="initial-bacteria-per-variation" width="260" sizeVersion="0"></slider>
243-
<chooser x="10" y="85" height="45" variable="visualize-variation" current="0" display="visualize-variation" width="260" sizeVersion="0">
242+
<slider x="10" step="1" y="57" max="10" width="260" display="initial-bacteria-per-variation" height="50" min="1" direction="Horizontal" default="5.0" variable="initial-bacteria-per-variation"></slider>
243+
<chooser x="10" y="112" height="60" variable="visualize-variation" current="0" width="260" display="visualize-variation">
244244
<choice type="string" value="flagella and color"></choice>
245245
<choice type="string" value="flagella only"></choice>
246246
<choice type="string" value="as color only"></choice>
247247
<choice type="string" value="# flagella as label"></choice>
248248
<choice type="string" value="none"></choice>
249249
</chooser>
250-
<monitor x="10" precision="17" y="140" height="45" fontSize="11" display="# alive" width="125" sizeVersion="0">count bacteria</monitor>
251-
<monitor x="145" precision="17" y="140" height="45" fontSize="11" display="# caught" width="125" sizeVersion="0">bacteria-caught</monitor>
250+
<monitor x="10" precision="17" y="182" height="60" fontSize="11" width="125" display="# alive">count bacteria</monitor>
251+
<monitor x="145" precision="17" y="182" height="60" fontSize="11" width="125" display="# caught">bacteria-caught</monitor>
252252
</widgets>
253253
<info><![CDATA[## WHAT IS IT?
254254

0 commit comments

Comments
 (0)