Skip to content

Commit ef7ac45

Browse files
authored
Merge pull request #419 from kgmt0/simple-birth-rates
Resize Simple Birth Rates
2 parents f23b362 + bccaf88 commit ef7ac45

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Sample Models/Biology/Simple Birth Rates.nlogox

Lines changed: 12 additions & 12 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="true">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals
44
[
55
red-count ; population of red turtles
@@ -95,14 +95,15 @@ end
9595
; Copyright 1997 Uri Wilensky.
9696
; See Info tab for full copyright and license.]]></code>
9797
<widgets>
98-
<view x="290" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-50" height="408" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="true" width="408" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="-50"></view>
99-
<button x="145" y="25" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="run-experiment" width="120" sizeVersion="0">go-experiment</button>
100-
<slider x="15" step="1" y="65" max="4000" display="carrying-capacity" height="33" min="1" direction="Horizontal" default="1000.0" variable="carrying-capacity" units="turtles" width="250" sizeVersion="0"></slider>
101-
<button x="15" y="25" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="60" sizeVersion="0">setup</button>
102-
<button x="80" y="25" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="60" sizeVersion="0">go</button>
103-
<slider x="15" step="0.1" y="135" max="10.0" display="red-fertility" height="33" min="0.0" direction="Horizontal" default="2.0" variable="red-fertility" units="children" width="250" sizeVersion="0"></slider>
104-
<slider x="15" step="0.1" y="100" max="10.0" display="blue-fertility" height="33" min="0.0" direction="Horizontal" default="2.0" variable="blue-fertility" units="children" width="250" sizeVersion="0"></slider>
105-
<plot x="4" autoPlotX="true" yMax="1200.0" autoPlotY="true" yAxis="Population" y="226" xMin="0.0" height="219" legend="true" xMax="50.0" yMin="0.0" xAxis="Generations" display="Populations" width="280" sizeVersion="0">
98+
<view x="270" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-50" height="408" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="true" width="408" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="-50"></view>
99+
<slider x="10" step="0.1" y="102" max="10.0" width="252" display="blue-fertility" height="50" min="0.0" direction="Horizontal" default="2.0" variable="blue-fertility" units="children"></slider>
100+
<slider x="10" step="0.1" y="154" max="10.0" width="252" display="red-fertility" height="50" min="0.0" direction="Horizontal" default="2.0" variable="red-fertility" units="children"></slider>
101+
<button x="75" y="8" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="60" display="go">go</button>
102+
<button x="10" y="8" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="60" display="setup">setup</button>
103+
<slider x="10" step="1" y="50" max="4000" width="252" display="carrying-capacity" height="50" min="1" direction="Horizontal" default="1000.0" variable="carrying-capacity" units="turtles"></slider>
104+
<button x="140" y="8" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="122" display="run-experiment">go-experiment</button>
105+
<output x="685" y="295" height="94" fontSize="12" width="295"></output>
106+
<plot x="685" autoPlotX="true" yMax="1200.0" autoPlotY="true" yAxis="Population" y="72" xMin="0.0" height="219" legend="true" xMax="50.0" yMin="0.0" width="295" xAxis="Generations" display="Populations">
106107
<setup>set-plot-y-range 0 floor (carrying-capacity * 1.2)</setup>
107108
<update></update>
108109
<pen interval="1.0" mode="0" display="Reds" color="-2674135" legend="true">
@@ -120,9 +121,8 @@ plot blue-count</update>
120121
<update>plot count turtles</update>
121122
</pen>
122123
</plot>
123-
<monitor x="67" precision="3" y="176" height="45" fontSize="11" display="# reds" width="76" sizeVersion="0">red-count</monitor>
124-
<monitor x="145" precision="3" y="176" height="45" fontSize="11" display="# blues" width="77" sizeVersion="0">blue-count</monitor>
125-
<output x="290" y="449" height="94" fontSize="12" width="312"></output>
124+
<monitor x="685" precision="3" y="7" height="60" fontSize="11" width="145" display="# reds">red-count</monitor>
125+
<monitor x="835" precision="3" y="7" height="60" fontSize="11" width="145" display="# blues">blue-count</monitor>
126126
</widgets>
127127
<info><![CDATA[## WHAT IS IT?
128128

0 commit comments

Comments
 (0)