Skip to content

Commit 970debb

Browse files
committed
Adjusting interface for Mammoths model
1 parent a4ddb63 commit 970debb

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

Sample Models/Biology/Evolution/Mammoths.nlogox

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -153,42 +153,42 @@ end
153153
; Copyright 1997 Uri Wilensky.
154154
; See Info tab for full copyright and license.]]></code>
155155
<widgets>
156-
<view x="375" maxPycor="96" updateMode="1" wrappingAllowedX="false" y="15" frameRate="30.0" minPycor="0" height="591" showTickCounter="true" patchSize="6.0" fontSize="10" wrappingAllowedY="false" width="590" tickCounterLabel="months" maxPxcor="96" minPxcor="0"></view>
157-
<monitor x="40" precision="0" y="355" height="45" fontSize="11" width="80" sizeVersion="0" display="years">ticks / 12</monitor>
158-
<slider x="10" step="1" y="240" height="33" min="0" direction="Horizontal" max="20" default="10.0" variable="human-birth-rate" units="%" width="355" sizeVersion="0" display="human-birth-rate"></slider>
159-
<slider x="10" step="1" y="205" height="33" min="0" direction="Horizontal" max="10" default="2.0" variable="mammoth-birth-rate" units="%" width="355" sizeVersion="0" display="mammoth-birth-rate"></slider>
160-
<slider x="10" step="1" y="275" height="33" min="1" direction="Horizontal" max="97" default="12.0" variable="odds-of-killing" units="%" width="355" sizeVersion="0" display="odds-of-killing"></slider>
161-
<slider x="10" step="1" y="50" height="33" min="0" direction="Horizontal" max="100" default="50.0" variable="number-of-humans" width="355" sizeVersion="0" display="number-of-humans"></slider>
162-
<slider x="10" step="1" y="15" height="33" min="100" direction="Horizontal" max="2000" default="900.0" variable="number-of-mammoths" width="355" sizeVersion="0" display="number-of-mammoths"></slider>
163-
<button x="120" y="95" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="60" display="setup">setup</button>
164-
<button x="205" y="95" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="60" display="go">go</button>
165-
<plot x="10" yMax="10.0" yAxis="Frequency" y="405" xMin="0.0" height="175" legend="true" xMax="10.0" autoplot="true" yMin="0.0" width="355" sizeVersion="0" xAxis="Months" display="Population">
156+
<view x="385" maxPycor="96" updateMode="1" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="0" height="586" showTickCounter="true" patchSize="6.0" fontSize="10" wrappingAllowedY="false" width="586" tickCounterLabel="months" maxPxcor="96" minPxcor="0"></view>
157+
<slider x="10" step="1" y="359" height="55" min="0" direction="Horizontal" max="20" default="10.0" variable="human-birth-rate" units="%" width="355" display="human-birth-rate"></slider>
158+
<slider x="10" step="1" y="297" height="55" min="0" direction="Horizontal" max="10" default="2.0" variable="mammoth-birth-rate" units="%" width="355" display="mammoth-birth-rate"></slider>
159+
<slider x="10" step="1" y="421" height="55" min="1" direction="Horizontal" max="97" default="12.0" variable="odds-of-killing" units="%" width="355" display="odds-of-killing"></slider>
160+
<slider x="10" step="1" y="69" height="55" min="0" direction="Horizontal" max="100" default="50.0" variable="number-of-humans" width="355" display="number-of-humans"></slider>
161+
<slider x="10" step="0.05" y="173" height="55" min="0" direction="Horizontal" max="1" default="0.3" variable="human-speed" units="patches" width="355" display="human-speed"></slider>
162+
<slider x="10" step="0.05" y="235" height="55" min="0" direction="Horizontal" max="1" default="0.2" variable="mammoth-speed" units="patches" width="355" display="mammoth-speed"></slider>
163+
<slider x="10" step="0.001" y="483" height="55" min="0.001" direction="Horizontal" max="0.1" default="0.003" variable="climate-change-decay-chance" units="%" width="355" display="climate-change-decay-chance"></slider>
164+
<slider x="10" step="1" y="7" height="55" min="100" direction="Horizontal" max="2000" default="900.0" variable="number-of-mammoths" width="355" display="number-of-mammoths"></slider>
165+
<monitor x="265" precision="17" y="545" height="55" fontSize="11" width="100" display="humans">count humans</monitor>
166+
<monitor x="130" precision="17" y="545" height="55" fontSize="11" width="115" display="mammoths">count mammoths</monitor>
167+
<monitor x="10" precision="0" y="545" height="55" fontSize="11" width="100" display="years">ticks / 12</monitor>
168+
<button x="95" y="130" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80" display="setup">setup</button>
169+
<button x="205" y="130" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="80" display="go">go</button>
170+
<plot x="985" yMax="10.0" yAxis="Frequency" y="300" xMin="0.0" height="295" legend="true" xMax="10.0" autoplot="true" yMin="0.0" width="360" xAxis="Months" display="Cause of Mammoth Deaths">
166171
<setup></setup>
167172
<update></update>
168-
<pen color="-6459832" legend="true" interval="1.0" mode="0" display="mammoths">
173+
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="humans">
169174
<setup></setup>
170-
<update>plot count mammoths</update>
175+
<update>plot mammoths-killed-by-humans</update>
171176
</pen>
172-
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="humans">
177+
<pen color="-7500403" legend="true" interval="1.0" mode="0" display="climate change">
173178
<setup></setup>
174-
<update>plot count humans</update>
179+
<update>plot mammoths-killed-by-climate-change</update>
175180
</pen>
176181
</plot>
177-
<slider x="10" step="0.05" y="135" height="33" min="0" direction="Horizontal" max="1" default="0.3" variable="human-speed" units="patches" width="355" sizeVersion="0" display="human-speed"></slider>
178-
<slider x="10" step="0.05" y="170" height="33" min="0" direction="Horizontal" max="1" default="0.2" variable="mammoth-speed" units="patches" width="355" sizeVersion="0" display="mammoth-speed"></slider>
179-
<monitor x="245" precision="17" y="355" height="45" fontSize="11" width="95" sizeVersion="0" display="humans">count humans</monitor>
180-
<monitor x="125" precision="17" y="355" height="45" fontSize="11" width="115" sizeVersion="0" display="mammoths">count mammoths</monitor>
181-
<slider x="10" step="0.001" y="310" height="33" min="0.001" direction="Horizontal" max="0.1" default="0.003" variable="climate-change-decay-chance" units="%" width="355" sizeVersion="0" display="climate-change-decay-chance"></slider>
182-
<plot x="10" yMax="10.0" yAxis="Frequency" y="585" xMin="0.0" height="185" legend="true" xMax="10.0" autoplot="true" yMin="0.0" width="355" sizeVersion="0" xAxis="Months" display="Cause of Mammoth Deaths">
182+
<plot x="980" yMax="10.0" yAxis="Frequency" y="7" xMin="0.0" height="285" legend="true" xMax="10.0" autoplot="true" yMin="0.0" width="365" xAxis="Months" display="Population">
183183
<setup></setup>
184184
<update></update>
185-
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="humans">
185+
<pen color="-6459832" legend="true" interval="1.0" mode="0" display="mammoths">
186186
<setup></setup>
187-
<update>plot mammoths-killed-by-humans</update>
187+
<update>plot count mammoths</update>
188188
</pen>
189-
<pen color="-7500403" legend="true" interval="1.0" mode="0" display="climate change">
189+
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="humans">
190190
<setup></setup>
191-
<update>plot mammoths-killed-by-climate-change</update>
191+
<update>plot count humans</update>
192192
</pen>
193193
</plot>
194194
</widgets>

0 commit comments

Comments
 (0)