Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Sample Models/Biology/Simple Birth Rates.nlogox
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
<code><![CDATA[globals
[
red-count ; population of red turtles
Expand Down Expand Up @@ -95,14 +95,15 @@ end
; Copyright 1997 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<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>
<button x="145" y="25" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="run-experiment" width="120" sizeVersion="0">go-experiment</button>
<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>
<button x="15" y="25" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="60" sizeVersion="0">setup</button>
<button x="80" y="25" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="60" sizeVersion="0">go</button>
<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>
<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>
<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">
<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>
<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>
<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>
<button x="75" y="8" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="60" display="go">go</button>
<button x="10" y="8" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="60" display="setup">setup</button>
<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>
<button x="140" y="8" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="122" display="run-experiment">go-experiment</button>
<output x="685" y="295" height="94" fontSize="12" width="295"></output>
<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">
<setup>set-plot-y-range 0 floor (carrying-capacity * 1.2)</setup>
<update></update>
<pen interval="1.0" mode="0" display="Reds" color="-2674135" legend="true">
Expand All @@ -120,9 +121,8 @@ plot blue-count</update>
<update>plot count turtles</update>
</pen>
</plot>
<monitor x="67" precision="3" y="176" height="45" fontSize="11" display="# reds" width="76" sizeVersion="0">red-count</monitor>
<monitor x="145" precision="3" y="176" height="45" fontSize="11" display="# blues" width="77" sizeVersion="0">blue-count</monitor>
<output x="290" y="449" height="94" fontSize="12" width="312"></output>
<monitor x="685" precision="3" y="7" height="60" fontSize="11" width="145" display="# reds">red-count</monitor>
<monitor x="835" precision="3" y="7" height="60" fontSize="11" width="145" display="# blues">blue-count</monitor>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
Loading