|
165 | 165 | <widgets> |
166 | 166 | <view x="267" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-23" height="427" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="false" width="427" tickCounterLabel="ticks" maxPycor="23" updateMode="1" maxPxcor="23" minPxcor="-23"></view> |
167 | 167 | <button x="11" y="9" height="41" disableUntilTicks="false" forever="false" kind="Observer" width="123">setup</button> |
168 | | - <plot x="11" autoPlotX="true" yMax="1080.0" autoPlotY="true" yAxis="total distance moved" y="366" xMin="0.0" height="193" legend="false" xMax="5.0" yMin="0.0" width="249" xAxis="circle number" display="Mobility of Scatterers"> |
| 168 | + <button x="143" y="9" height="41" disableUntilTicks="true" forever="true" kind="Observer" width="117">go</button> |
| 169 | + <slider x="11" step="0.1" y="115" max="2" width="249" display="step-size" height="50" min="0.1" direction="Horizontal" default="1.0" variable="step-size"></slider> |
| 170 | + <slider x="11" step="0.5" y="59" max="20" width="249" display="initial-radius" height="50" min="0" direction="Horizontal" default="10.5" variable="initial-radius"></slider> |
| 171 | + <slider x="703" step="0.1" y="10" max="5" width="197" display="too-close" height="50" min="0.1" direction="Horizontal" default="1.5" variable="too-close"></slider> |
| 172 | + <slider x="703" step="0.1" y="68" max="5" width="197" display="too-far" height="50" min="0.1" direction="Horizontal" default="2.0" variable="too-far"></slider> |
| 173 | + <note x="704" y="130" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Violet</note> |
| 174 | + <slider x="704" step="1" y="148" max="200" width="197" display="num-random-min" height="50" min="0" direction="Horizontal" default="100.0" variable="num-random-min"></slider> |
| 175 | + <slider x="704" step="1" y="480" max="200" width="197" display="num-random" height="50" min="0" direction="Horizontal" default="0.0" variable="num-random"></slider> |
| 176 | + <slider x="704" step="1" y="395" max="200" width="197" display="num-random-away" height="50" min="0" direction="Horizontal" default="0.0" variable="num-random-away"></slider> |
| 177 | + <note x="704" y="462" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Brown</note> |
| 178 | + <note x="704" y="377" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Pink</note> |
| 179 | + <note x="704" y="294" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Orange</note> |
| 180 | + <slider x="704" step="1" y="310" max="200" width="197" display="num-open-min-max" height="50" min="0" direction="Horizontal" default="50.0" variable="num-open-min-max"></slider> |
| 181 | + <note x="704" y="213" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Blue</note> |
| 182 | + <slider x="704" step="1" y="230" max="200" width="197" display="num-open-min" height="50" min="0" direction="Horizontal" default="0.0" variable="num-open-min"></slider> |
| 183 | + <plot x="13" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="average distance" y="172" xMin="0.0" height="238" legend="false" xMax="100.0" yMin="0.0" width="250" xAxis="time ticks" display="Average Distance from Origin"> |
| 184 | + <setup>set-plot-x-range 0 30 |
| 185 | +set-plot-y-range 0 5 ; set initial y range to half of height</setup> |
| 186 | + <update><![CDATA[foreach [ "random-min" "random-away" "random" "open-min" "open-min-max" ] [ r -> |
| 187 | + ;; if there are any turtles with turtle-rule as their rule, |
| 188 | + ;; plot the mean distance from the origin |
| 189 | + if any? turtles with [ rule = r ] [ |
| 190 | + set-current-plot-pen r |
| 191 | + plot mean [ distance origin ] of turtles with [ rule = r ] |
| 192 | + ] |
| 193 | +]]]></update> |
| 194 | + <pen interval="1.0" mode="0" display="random-min" color="-8630108" legend="true"> |
| 195 | + <setup></setup> |
| 196 | + <update></update> |
| 197 | + </pen> |
| 198 | + <pen interval="1.0" mode="0" display="random-away" color="-2064490" legend="true"> |
| 199 | + <setup></setup> |
| 200 | + <update></update> |
| 201 | + </pen> |
| 202 | + <pen interval="1.0" mode="0" display="random" color="-6459832" legend="true"> |
| 203 | + <setup></setup> |
| 204 | + <update></update> |
| 205 | + </pen> |
| 206 | + <pen interval="1.0" mode="0" display="open-min" color="-13345367" legend="true"> |
| 207 | + <setup></setup> |
| 208 | + <update></update> |
| 209 | + </pen> |
| 210 | + <pen interval="1.0" mode="0" display="open-min-max" color="-955883" legend="true"> |
| 211 | + <setup></setup> |
| 212 | + <update></update> |
| 213 | + </pen> |
| 214 | + </plot> |
| 215 | + <plot x="13" autoPlotX="true" yMax="1080.0" autoPlotY="true" yAxis="total distance moved" y="415" xMin="0.0" height="239" legend="false" xMax="5.0" yMin="0.0" width="250" xAxis="circle number" display="Mobility of Scatterers"> |
169 | 216 | <setup>set-plot-x-range 0 5 |
170 | 217 | set-plot-y-range 0 (max-pxcor)</setup> |
171 | 218 | <update><![CDATA[;; a histogram of the total distance traveled by turtles, |
@@ -212,53 +259,6 @@ if (any? turtles with [(distancexy 0 0) > (world-width - 1) / 2]) |
212 | 259 | <update></update> |
213 | 260 | </pen> |
214 | 261 | </plot> |
215 | | - <button x="143" y="9" height="41" disableUntilTicks="true" forever="true" kind="Observer" width="117">go</button> |
216 | | - <slider x="11" step="0.1" y="115" max="2" width="249" display="step-size" height="50" min="0.1" direction="Horizontal" default="1.0" variable="step-size"></slider> |
217 | | - <plot x="11" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="average distance" y="173" xMin="0.0" height="186" legend="false" xMax="100.0" yMin="0.0" width="249" xAxis="time ticks" display="Average Distance from Origin"> |
218 | | - <setup>set-plot-x-range 0 30 |
219 | | -set-plot-y-range 0 5 ; set initial y range to half of height</setup> |
220 | | - <update><![CDATA[foreach [ "random-min" "random-away" "random" "open-min" "open-min-max" ] [ r -> |
221 | | - ;; if there are any turtles with turtle-rule as their rule, |
222 | | - ;; plot the mean distance from the origin |
223 | | - if any? turtles with [ rule = r ] [ |
224 | | - set-current-plot-pen r |
225 | | - plot mean [ distance origin ] of turtles with [ rule = r ] |
226 | | - ] |
227 | | -]]]></update> |
228 | | - <pen interval="1.0" mode="0" display="random-min" color="-8630108" legend="true"> |
229 | | - <setup></setup> |
230 | | - <update></update> |
231 | | - </pen> |
232 | | - <pen interval="1.0" mode="0" display="random-away" color="-2064490" legend="true"> |
233 | | - <setup></setup> |
234 | | - <update></update> |
235 | | - </pen> |
236 | | - <pen interval="1.0" mode="0" display="random" color="-6459832" legend="true"> |
237 | | - <setup></setup> |
238 | | - <update></update> |
239 | | - </pen> |
240 | | - <pen interval="1.0" mode="0" display="open-min" color="-13345367" legend="true"> |
241 | | - <setup></setup> |
242 | | - <update></update> |
243 | | - </pen> |
244 | | - <pen interval="1.0" mode="0" display="open-min-max" color="-955883" legend="true"> |
245 | | - <setup></setup> |
246 | | - <update></update> |
247 | | - </pen> |
248 | | - </plot> |
249 | | - <slider x="11" step="0.5" y="59" max="20" width="249" display="initial-radius" height="50" min="0" direction="Horizontal" default="10.5" variable="initial-radius"></slider> |
250 | | - <slider x="703" step="0.1" y="10" max="5" width="197" display="too-close" height="50" min="0.1" direction="Horizontal" default="1.5" variable="too-close"></slider> |
251 | | - <slider x="703" step="0.1" y="68" max="5" width="197" display="too-far" height="50" min="0.1" direction="Horizontal" default="2.0" variable="too-far"></slider> |
252 | | - <note x="704" y="130" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Violet</note> |
253 | | - <slider x="704" step="1" y="148" max="200" width="197" display="num-random-min" height="50" min="0" direction="Horizontal" default="100.0" variable="num-random-min"></slider> |
254 | | - <slider x="704" step="1" y="480" max="200" width="197" display="num-random" height="50" min="0" direction="Horizontal" default="0.0" variable="num-random"></slider> |
255 | | - <slider x="704" step="1" y="395" max="200" width="197" display="num-random-away" height="50" min="0" direction="Horizontal" default="0.0" variable="num-random-away"></slider> |
256 | | - <note x="704" y="462" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Brown</note> |
257 | | - <note x="704" y="377" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Pink</note> |
258 | | - <note x="704" y="294" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Orange</note> |
259 | | - <slider x="704" step="1" y="310" max="200" width="197" display="num-open-min-max" height="50" min="0" direction="Horizontal" default="50.0" variable="num-open-min-max"></slider> |
260 | | - <note x="704" y="213" backgroundDark="0" fontSize="11" width="197" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Blue</note> |
261 | | - <slider x="704" step="1" y="230" max="200" width="197" display="num-open-min" height="50" min="0" direction="Horizontal" default="0.0" variable="num-open-min"></slider> |
262 | 262 | </widgets> |
263 | 263 | <info><![CDATA[## WHAT IS IT? |
264 | 264 |
|
|
0 commit comments