Skip to content

Commit 825cdaf

Browse files
committed
Convert Alternative Visualizations to new sizes
1 parent 5e49253 commit 825cdaf

5 files changed

Lines changed: 72 additions & 72 deletions

Alternative Visualizations/Ethnocentrism - Alternative Visualization.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,15 @@ end
330330
; See Info tab for full copyright and license.]]></code>
331331
<widgets>
332332
<view x="350" wrappingAllowedX="true" y="20" frameRate="30.0" minPycor="0" height="514" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="514" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="0"></view>
333-
<slider x="10" step="0.0010" y="185" max="1.0" display="mutation-rate" height="33" min="0.0" direction="Horizontal" default="0.005" variable="mutation-rate" width="166" sizeVersion="0"></slider>
334-
<slider x="10" step="0.05" y="220" max="1.0" display="death-rate" height="33" min="0.0" direction="Horizontal" default="0.1" variable="death-rate" width="166" sizeVersion="0"></slider>
335-
<slider x="10" step="1.0" y="255" max="100.0" display="immigrants-per-day" height="33" min="0.0" direction="Horizontal" default="1.0" variable="immigrants-per-day" width="166" sizeVersion="0"></slider>
336-
<slider x="180" step="0.01" y="185" max="1.0" display="initial-PTR" height="33" min="0.0" direction="Horizontal" default="0.12" variable="initial-PTR" width="155" sizeVersion="0"></slider>
337-
<slider x="180" step="0.01" y="220" max="1.0" display="cost-of-giving" height="33" min="0.0" direction="Horizontal" default="0.01" variable="cost-of-giving" width="155" sizeVersion="0"></slider>
338-
<slider x="180" step="0.01" y="255" max="1.0" display="gain-of-receiving" height="33" min="0.0" direction="Horizontal" default="0.03" variable="gain-of-receiving" width="155" sizeVersion="0"></slider>
339-
<button x="19" y="24" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup empty" width="108" sizeVersion="0">setup-empty</button>
340-
<button x="220" y="24" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="73" sizeVersion="0">go</button>
341-
<plot x="10" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="count" y="360" xMin="0.0" height="202" legend="true" xMax="10.0" yMin="0.0" xAxis="time" display="Strategy Counts" width="325" sizeVersion="0">
333+
<slider x="10" step="0.0010" y="192" max="1.0" width="166" display="mutation-rate" height="50" min="0.0" direction="Horizontal" default="0.005" variable="mutation-rate"></slider>
334+
<slider x="10" step="0.05" y="247" max="1.0" width="166" display="death-rate" height="50" min="0.0" direction="Horizontal" default="0.1" variable="death-rate"></slider>
335+
<slider x="10" step="1.0" y="302" max="100.0" width="166" display="immigrants-per-day" height="50" min="0.0" direction="Horizontal" default="1.0" variable="immigrants-per-day"></slider>
336+
<slider x="180" step="0.01" y="192" max="1.0" width="155" display="initial-PTR" height="50" min="0.0" direction="Horizontal" default="0.12" variable="initial-PTR"></slider>
337+
<slider x="180" step="0.01" y="247" max="1.0" width="155" display="cost-of-giving" height="50" min="0.0" direction="Horizontal" default="0.01" variable="cost-of-giving"></slider>
338+
<slider x="180" step="0.01" y="302" max="1.0" width="155" display="gain-of-receiving" height="50" min="0.0" direction="Horizontal" default="0.03" variable="gain-of-receiving"></slider>
339+
<button x="19" y="24" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="108" display="setup empty">setup-empty</button>
340+
<button x="220" y="24" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="73">go</button>
341+
<plot x="10" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="count" y="467" xMin="0.0" height="218" legend="true" xMax="10.0" yMin="0.0" width="325" xAxis="time" display="Strategy Counts">
342342
<setup></setup>
343343
<update></update>
344344
<pen interval="1.0" mode="0" display="CC" color="-10899396" legend="true">
@@ -358,10 +358,10 @@ end
358358
<update>plotxy ticks count turtles with [shape = "square 2"]</update>
359359
</pen>
360360
</plot>
361-
<button x="129" y="24" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup full" width="89" sizeVersion="0">setup-full</button>
362-
<slider x="10" step="0.01" y="290" max="1.0" display="immigrant-chance-cooperate-with-same" height="33" min="0.0" direction="Horizontal" default="0.5" variable="immigrant-chance-cooperate-with-same" width="325" sizeVersion="0"></slider>
363-
<slider x="10" step="0.01" y="324" max="1.0" display="immigrant-chance-cooperate-with-different" height="33" min="0.0" direction="Horizontal" default="0.5" variable="immigrant-chance-cooperate-with-different" width="325" sizeVersion="0"></slider>
364-
<note x="4" y="80" height="102" textColorLight="-16777216" fontSize="11" width="330" markdown="false">Horizontal lines are altruists - cooperate with everyone
361+
<button x="129" y="24" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="89" display="setup full">setup-full</button>
362+
<slider x="10" step="0.01" y="357" max="1.0" width="325" display="immigrant-chance-cooperate-with-same" height="50" min="0.0" direction="Horizontal" default="0.5" variable="immigrant-chance-cooperate-with-same"></slider>
363+
<slider x="10" step="0.01" y="412" max="1.0" width="325" display="immigrant-chance-cooperate-with-different" height="50" min="0.0" direction="Horizontal" default="0.5" variable="immigrant-chance-cooperate-with-different"></slider>
364+
<note x="4" y="87" backgroundDark="0" fontSize="11" width="330" markdown="false" height="102" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Horizontal lines are altruists - cooperate with everyone
365365
Vertical lines are ethnocentric - cooperate with same,
366366
not with different
367367
Crosses are cosmopolitan - cooperate with different,

Alternative Visualizations/Flocking - Alternative Visualizations.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,27 +167,27 @@ end
167167
; Copyright 1998 Uri Wilensky.
168168
; See Info tab for full copyright and license.]]></code>
169169
<widgets>
170-
<view x="250" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="true" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
171-
<button x="10" y="59" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77" sizeVersion="0">setup</button>
172-
<button x="93" y="59" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="105" sizeVersion="0">go</button>
173-
<slider x="11" step="1" y="106" max="1000" display="population" height="33" min="1" direction="Horizontal" default="300.0" variable="population" width="223" sizeVersion="0"></slider>
174-
<slider x="6" step="0.25" y="235" max="20.0" display="max-align-turn" height="33" min="0.0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees" width="233" sizeVersion="0"></slider>
175-
<slider x="6" step="0.25" y="269" max="20" display="max-cohere-turn" height="33" min="0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees" width="233" sizeVersion="0"></slider>
176-
<slider x="6" step="0.25" y="303" max="20" display="max-separate-turn" height="33" min="0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees" width="233" sizeVersion="0"></slider>
177-
<slider x="11" step="0.5" y="153" max="10" display="vision" height="33" min="0" direction="Horizontal" default="5.0" variable="vision" units="patches" width="223" sizeVersion="0"></slider>
178-
<slider x="11" step="0.25" y="187" max="5" display="minimum-separation" height="33" min="0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches" width="223" sizeVersion="0"></slider>
179-
<chooser x="249" y="538" height="45" variable="question" current="0" display="question" width="507" sizeVersion="0">
170+
<view x="256" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="true" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
171+
<button x="10" y="59" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="77">setup</button>
172+
<button x="93" y="59" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="105" display="go">go</button>
173+
<slider x="11" step="1" y="113" max="1000" width="223" display="population" height="50" min="1" direction="Horizontal" default="300.0" variable="population"></slider>
174+
<slider x="6" step="0.25" y="297" max="20.0" width="233" display="max-align-turn" height="50" min="0.0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees"></slider>
175+
<slider x="6" step="0.25" y="352" max="20" width="233" display="max-cohere-turn" height="50" min="0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees"></slider>
176+
<slider x="6" step="0.25" y="407" max="20" width="233" display="max-separate-turn" height="50" min="0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees"></slider>
177+
<slider x="11" step="0.5" y="177" max="10" width="223" display="vision" height="50" min="0" direction="Horizontal" default="5.0" variable="vision" units="patches"></slider>
178+
<slider x="11" step="0.25" y="232" max="5" width="223" display="minimum-separation" height="50" min="0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches"></slider>
179+
<chooser x="249" y="538" height="60" variable="question" current="0" width="507" display="question">
180180
<choice type="string" value="0 None"></choice>
181181
<choice type="string" value="1 Are the boids aligned?"></choice>
182182
<choice type="string" value="2 Are the boids in separation or cohesion mode?"></choice>
183183
<choice type="string" value="3 Do all of the boids end up following the same leader?"></choice>
184184
<choice type="string" value="4 Are the boids aligned? Are the boids in separation or cohesion mode?"></choice>
185185
</chooser>
186-
<slider x="8" step="0.01" y="376" max="1" display="step" height="33" min="0" direction="Horizontal" default="0.1" variable="step" width="228" sizeVersion="0"></slider>
187-
<note x="12" y="8" height="47" textColorLight="-16777216" fontSize="11" width="239" markdown="false">You can change the question
186+
<slider x="8" step="0.01" y="497" max="1" width="228" display="step" height="50" min="0" direction="Horizontal" default="0.1" variable="step"></slider>
187+
<note x="12" y="8" backgroundDark="0" fontSize="11" width="239" markdown="false" height="47" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">You can change the question
188188
while the simulation is running.
189189
(While the go button is pressed...)</note>
190-
<note x="10" y="347" height="28" textColorLight="-16777216" fontSize="11" width="237" markdown="false">reduce the step to better
190+
<note x="10" y="468" backgroundDark="0" fontSize="11" width="237" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">reduce the step to better
191191
observe the interactions</note>
192192
</widgets>
193193
<info><![CDATA[## ACKNOWLEDGMENT

Alternative Visualizations/Heat Diffusion - Alternative Visualization.nlogox

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@ end
196196
; Copyright 1998 Uri Wilensky.
197197
; See Info tab for full copyright and license.]]></code>
198198
<widgets>
199-
<view x="290" wrappingAllowedX="true" y="120" frameRate="30.0" minPycor="-25" height="259" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="259" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
200-
<slider x="5" step="1.0E-4" y="90" max="10.0" display="alpha" height="33" min="0.0010" direction="Horizontal" default="0.00128" variable="alpha" width="135" sizeVersion="0"></slider>
201-
<slider x="345" step="1.0" y="80" max="100.0" display="top-temp" height="33" min="1.0" direction="Horizontal" default="65.0" variable="top-temp" width="155" sizeVersion="0"></slider>
202-
<slider x="560" step="1.0" y="185" max="100.0" display="right-temp" height="155" min="1.0" direction="Vertical" default="100.0" variable="right-temp" width="33" sizeVersion="0"></slider>
203-
<slider x="345" step="1.0" y="410" max="100.0" display="bottom-temp" height="33" min="1.0" direction="Horizontal" default="15.0" variable="bottom-temp" width="160" sizeVersion="0"></slider>
204-
<slider x="5" step="1.0" y="50" max="100.0" display="initial-plate-temp" height="33" min="1.0" direction="Horizontal" default="87.0" variable="initial-plate-temp" width="135" sizeVersion="0"></slider>
205-
<button x="230" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="65" sizeVersion="0">go</button>
206-
<slider x="250" step="1.0" y="190" max="100.0" display="left-temp" height="155" min="1.0" direction="Vertical" default="1.0" variable="left-temp" width="33" sizeVersion="0"></slider>
207-
<button x="5" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="116" sizeVersion="0">setup</button>
208-
<button x="137" y="10" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Go Once" width="73" sizeVersion="0">go</button>
209-
<button x="149" y="137" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Update Alpha" width="98" sizeVersion="0">update-alpha</button>
210-
<chooser x="5" y="130" height="45" variable="material-type" current="0" display="material-type" width="135" sizeVersion="0">
199+
<view x="307" wrappingAllowedX="true" y="137" frameRate="30.0" minPycor="-25" height="259" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="259" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
200+
<slider x="5" step="1.0E-4" y="114" max="10.0" width="150" display="alpha" height="50" min="0.0010" direction="Horizontal" default="0.0013" variable="alpha"></slider>
201+
<slider x="360" step="1.0" y="80" max="100.0" width="155" display="top-temp" height="50" min="1.0" direction="Horizontal" default="65.0" variable="top-temp"></slider>
202+
<slider x="577" step="1.0" y="185" max="100.0" width="50" display="right-temp" height="155" min="1.0" direction="Vertical" default="100.0" variable="right-temp"></slider>
203+
<slider x="5" step="1.0" y="57" max="100.0" width="150" display="initial-plate-temp" height="50" min="1.0" direction="Horizontal" default="87.0" variable="initial-plate-temp"></slider>
204+
<button x="230" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="65" display="Go">go</button>
205+
<slider x="250" step="1.0" y="204" max="100.0" width="50" display="left-temp" height="155" min="1.0" direction="Vertical" default="1.0" variable="left-temp"></slider>
206+
<button x="5" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="116" display="Setup">setup</button>
207+
<button x="137" y="10" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="73" display="Go Once">go</button>
208+
<button x="164" y="144" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="98" display="Update Alpha">update-alpha</button>
209+
<chooser x="5" y="171" height="60" variable="material-type" current="0" width="150" display="material-type">
211210
<choice type="string" value="wood"></choice>
212211
<choice type="string" value="stone"></choice>
213212
<choice type="string" value="iron"></choice>
214213
<choice type="string" value="aluminum"></choice>
215214
<choice type="string" value="silver"></choice>
216215
<choice type="string" value="other"></choice>
217216
</chooser>
218-
<chooser x="6" y="205" height="45" variable="color-scheme" current="3" display="color-scheme" width="139" sizeVersion="0">
217+
<chooser x="6" y="261" height="60" variable="color-scheme" current="3" width="149" display="color-scheme">
219218
<choice type="string" value="red"></choice>
220219
<choice type="string" value="hsb"></choice>
221220
<choice type="string" value="rgb"></choice>
222221
<choice type="string" value="divergent"></choice>
223222
</chooser>
224-
<note x="151" y="62" height="74" backgroundDark="0" fontSize="11" width="186" markdown="false" textColorLight="-16777216" backgroundLight="0">Choose a material and then
223+
<note x="166" y="69" backgroundDark="0" fontSize="11" width="186" markdown="false" height="74" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Choose a material and then
225224
press UPDATE ALPHA based
226225
on that material, or set ALPHA
227226
directly from the slider.</note>
227+
<slider x="358" step="1.0" y="402" max="100.0" width="160" display="bottom-temp" height="50" min="1.0" direction="Horizontal" default="15.0" variable="bottom-temp"></slider>
228228
</widgets>
229229
<info><![CDATA[## ACKNOWLEDGMENT
230230

0 commit comments

Comments
 (0)