Skip to content

Commit 6cccf37

Browse files
committed
Resized the widgets of the Peppered Moths model
1 parent 48ee015 commit 6cccf37

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

Sample Models/Biology/Evolution/Peppered Moths.nlogox

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
33
<code><![CDATA[breed [moths moth] ;; might extend the model with other breeds: birds, bugs, etc.
44
55
moths-own [
@@ -178,9 +178,8 @@ end
178178
; Copyright 1997 Uri Wilensky.
179179
; See Info tab for full copyright and license.]]></code>
180180
<widgets>
181-
<view x="296" wrappingAllowedX="true" y="10" frameRate="15.0" minPycor="-20" height="414" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="334" tickCounterLabel="ticks" maxPycor="20" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
182-
<slider x="4" step="1" y="152" max="200" display="num-moths" height="33" min="0" direction="Horizontal" default="100.0" variable="num-moths" width="258" sizeVersion="0"></slider>
183-
<plot x="642" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="Moth Color Count" y="36" xMin="0.0" height="299" legend="true" xMax="100.0" yMin="0.0" xAxis="Time" display="Moth Colors Over Time" width="300" sizeVersion="0">
181+
<view x="345" wrappingAllowedX="true" y="5" frameRate="15.0" minPycor="-20" height="414" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="334" tickCounterLabel="ticks" maxPycor="20" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
182+
<plot x="690" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="Moth Color Count" y="5" xMin="0.0" height="299" legend="true" xMax="100.0" yMin="0.0" width="300" xAxis="Time" display="Moth Colors Over Time">
184183
<setup>set-plot-y-range 0 upper-bound</setup>
185184
<update></update>
186185
<pen interval="1.0" mode="0" display="Light" color="-1184463" legend="true">
@@ -200,19 +199,20 @@ end
200199
<update>plot ((upper-bound / 3) * darkness / 8)</update>
201200
</pen>
202201
</plot>
203-
<button x="4" y="41" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="55" sizeVersion="0">setup</button>
204-
<monitor x="4" precision="0" y="316" height="45" fontSize="11" display="Light Moths" width="82" sizeVersion="0">light-moths</monitor>
205-
<monitor x="200" precision="0" y="316" height="45" fontSize="11" display="Dark Moths" width="88" sizeVersion="0">dark-moths</monitor>
206-
<monitor x="92" precision="0" y="316" height="45" fontSize="11" display="Medium Moths" width="103" sizeVersion="0">medium-moths</monitor>
207-
<button x="65" y="41" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="56" sizeVersion="0">go</button>
208-
<slider x="4" step="1.0" y="261" max="100.0" display="mutation" height="33" min="0.0" direction="Horizontal" default="15.0" variable="mutation" width="260" sizeVersion="0"></slider>
209-
<slider x="4" step="1.0" y="206" max="100.0" display="selection" height="33" min="0.0" direction="Horizontal" default="50.0" variable="selection" width="259" sizeVersion="0"></slider>
210-
<monitor x="4" precision="0" y="378" height="45" fontSize="11" display="Total Moths" width="81" sizeVersion="0">light-moths + medium-moths + dark-moths</monitor>
211-
<button x="4" y="91" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="pollute" width="55" sizeVersion="0">pollute-world</button>
212-
<button x="65" y="91" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="clean up" width="67" sizeVersion="0">clean-up-world</button>
213-
<monitor x="92" precision="1" y="378" height="45" fontSize="11" display="Pollution (%)" width="102" sizeVersion="0">100 * darkness / 8</monitor>
214-
<slider x="144" step="1.0" y="91" max="100.0" display="speed" height="33" min="1.0" direction="Horizontal" default="10.0" variable="speed" width="133" sizeVersion="0"></slider>
215-
<switch x="127" y="41" height="33" on="false" variable="cycle-pollution?" display="cycle-pollution?" width="151" sizeVersion="0"></switch>
202+
<switch x="145" y="5" height="38" on="false" variable="cycle-pollution?" width="190" display="cycle-pollution?"></switch>
203+
<monitor x="235" precision="0" y="300" height="60" fontSize="11" width="100" display="Dark Moths">dark-moths</monitor>
204+
<monitor x="120" precision="0" y="299" height="60" fontSize="11" width="103" display="Medium Moths">medium-moths</monitor>
205+
<monitor x="9" precision="0" y="299" height="60" fontSize="11" width="100" display="Light Moths">light-moths</monitor>
206+
<slider x="145" step="1.0" y="55" max="100.0" width="190" display="speed" height="50" min="1.0" direction="Horizontal" default="41.0" variable="speed"></slider>
207+
<slider x="5" step="1.0" y="240" max="100.0" width="330" display="mutation" height="50" min="0.0" direction="Horizontal" default="15.0" variable="mutation"></slider>
208+
<slider x="5" step="1.0" y="180" max="100.0" width="330" display="selection" height="50" min="0.0" direction="Horizontal" default="50.0" variable="selection"></slider>
209+
<slider x="5" step="1" y="120" max="200" width="330" display="num-moths" height="50" min="0" direction="Horizontal" default="100.0" variable="num-moths"></slider>
210+
<button x="65" y="55" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="70" display="clean up">clean-up-world</button>
211+
<button x="5" y="55" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="55" display="pollute">pollute-world</button>
212+
<button x="5" y="5" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="55" display="setup">setup</button>
213+
<button x="65" y="5" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="70" display="go">go</button>
214+
<monitor x="65" precision="0" y="370" height="60" fontSize="11" width="100" display="Total Moths">light-moths + medium-moths + dark-moths</monitor>
215+
<monitor x="180" precision="1" y="370" height="60" fontSize="11" width="102" display="Pollution (%)">100 * darkness / 8</monitor>
216216
</widgets>
217217
<info><![CDATA[## WHAT IS IT?
218218

0 commit comments

Comments
 (0)