Skip to content

Commit c47a6ff

Browse files
committed
Fix models failing ViewTests
1 parent 8bd910f commit c47a6ff

13 files changed

Lines changed: 22 additions & 22 deletions

Code Examples/Extensions Examples/ls/Model Interactions Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ end
6464
; To the extent possible under law, Uri Wilensky has waived all
6565
; copyright and related or neighboring rights to this model.</code>
6666
<widgets>
67-
<view x="85" wrappingAllowedX="true" y="50" frameRate="30.0" minPycor="-6" height="34" showTickCounter="true" patchSize="2.31" fontSize="10" wrappingAllowedY="true" width="34" tickCounterLabel="ticks" maxPycor="6" updateMode="1" maxPxcor="6" minPxcor="-6"></view>
67+
<view x="85" wrappingAllowedX="true" y="50" frameRate="30.0" minPycor="-6" height="30" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="30" tickCounterLabel="ticks" maxPycor="6" updateMode="1" maxPxcor="6" minPxcor="-6"></view>
6868
<button x="15" y="120" height="105" disableUntilTicks="true" forever="true" kind="Observer" width="180">go</button>
6969
<button x="15" y="10" height="105" disableUntilTicks="false" forever="false" kind="Observer" width="180">setup</button>
7070
</widgets>

Code Examples/Extensions Examples/sr/boxplot-example.nlogox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ end
8989
; To the extent possible under law, Uri Wilensky has waived all
9090
; copyright and related or neighboring rights to this model.</code>
9191
<widgets>
92-
<view x="550" wrappingAllowedX="true" y="12" frameRate="30.0" minPycor="-16" height="180" showTickCounter="true" patchSize="5.333333333333333" fontSize="10" wrappingAllowedY="true" width="180" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
92+
<view x="550" wrappingAllowedX="true" y="12" frameRate="30.0" minPycor="-16" height="169" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="169" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
9393
<button x="18" y="240" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="63">test</button>
9494
<button x="18" y="136" height="35" disableUntilTicks="false" forever="true" kind="Observer" width="63">r-idle</button>
9595
<button x="18" y="348" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="63">test2</button>
@@ -99,7 +99,7 @@ end
9999
<note x="18" y="191" backgroundDark="0" fontSize="11" width="459" markdown="false" height="29" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[this button will create a temp. list, send it to R and creates a boxplot (into the standard grafics output -> the R Plot Window).]]></note>
100100
<note x="18" y="295" backgroundDark="0" fontSize="11" width="459" markdown="false" height="33" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">this button will create two temp. lists, put them both into one R data.frame and creates a boxplot over both columns.</note>
101101
<note x="18" y="403" backgroundDark="0" fontSize="11" width="459" markdown="false" height="27" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">this button will close the graphics device (here: the plot window). But you can also just close the window.</note>
102-
<output x="532" y="215" height="61" fontSize="12" width="216"></output>
102+
<output x="526" y="204" height="61" fontSize="12" width="216"></output>
103103
</widgets>
104104
<info><![CDATA[## WHAT IS IT?
105105

Code Examples/Extensions Examples/sr/example1.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ end
6767
; To the extent possible under law, Uri Wilensky has waived all
6868
; copyright and related or neighboring rights to this model.</code>
6969
<widgets>
70-
<view x="622" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="16" showTickCounter="true" patchSize="0.364" fontSize="10" wrappingAllowedY="true" width="16" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
70+
<view x="622" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="37" showTickCounter="true" patchSize="1.0" fontSize="10" wrappingAllowedY="true" width="37" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
7171
<output x="35" y="96" height="338" fontSize="12" width="755"></output>
7272
<button x="40" y="22" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">test</button>
7373
</widgets>

Code Examples/Extensions Examples/sr/interactiveShell.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
; To the extent possible under law, Uri Wilensky has waived all
4545
; copyright and related or neighboring rights to this model.</code>
4646
<widgets>
47-
<view x="526" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="260" showTickCounter="true" patchSize="7.76" fontSize="10" wrappingAllowedY="true" width="260" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
47+
<view x="526" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="268" showTickCounter="true" patchSize="8.0" fontSize="10" wrappingAllowedY="true" width="268" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
4848
<note x="15" y="67" backgroundDark="0" fontSize="11" width="415" markdown="false" height="163" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[Click the button and try the following commands in the interactiveShell:
4949
# show the content of global environment
5050
ls()

Code Examples/Extensions Examples/sr/patchesToRMatrix.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
; To the extent possible under law, Uri Wilensky has waived all
5252
; copyright and related or neighboring rights to this model.]]></code>
5353
<widgets>
54-
<view x="210" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="96" showTickCounter="true" patchSize="30.8" fontSize="10" wrappingAllowedY="true" width="158" tickCounterLabel="ticks" maxPycor="2" updateMode="1" maxPxcor="2" minPxcor="-2"></view>
54+
<view x="210" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="94" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="true" width="154" tickCounterLabel="ticks" maxPycor="2" updateMode="1" maxPxcor="2" minPxcor="-2"></view>
5555
<button x="7" y="21" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
5656
<button x="7" y="64" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="124">send-patches-to-r</button>
5757
<button x="8" y="108" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="162" display="create and show matrix">create-matrix</button>

Code Examples/Extensions Examples/sr/plotting.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ end
4949
; To the extent possible under law, Uri Wilensky has waived all
5050
; copyright and related or neighboring rights to this model.]]></code>
5151
<widgets>
52-
<view x="21" wrappingAllowedX="false" y="103" frameRate="30.0" minPycor="0" height="92" showTickCounter="true" patchSize="1.092" fontSize="10" wrappingAllowedY="false" width="551" tickCounterLabel="ticks" maxPycor="80" updateMode="1" maxPxcor="500" minPxcor="0"></view>
52+
<view x="21" wrappingAllowedX="false" y="103" frameRate="30.0" minPycor="0" height="85" showTickCounter="true" patchSize="1.0" fontSize="10" wrappingAllowedY="false" width="505" tickCounterLabel="ticks" maxPycor="80" updateMode="1" maxPxcor="500" minPxcor="0"></view>
5353
<button x="23" y="50" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
5454
<button x="98" y="50" height="35" disableUntilTicks="false" forever="true" kind="Observer" width="63">go</button>
55-
<plot x="22" autoPlotX="true" yMax="40.0" autoPlotY="true" yAxis="turtles" y="211" xMin="0.0" height="157" legend="false" xMax="500.0" yMin="0.0" width="554" xAxis="wealth" display="wealth distribution">
55+
<button x="426" y="51" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="149" display="create R plot image">create-r-plot</button>
56+
<input x="180" multiline="false" y="25" height="60" variable="filename" type="string" width="229">my_simple_economy_histogram.png</input>
57+
<plot x="21" autoPlotX="true" yMax="40.0" autoPlotY="true" yAxis="turtles" y="207" xMin="0.0" height="157" legend="false" xMax="500.0" yMin="0.0" width="554" xAxis="wealth" display="wealth distribution">
5658
<setup></setup>
5759
<update></update>
5860
<pen interval="5.0" mode="1" display="current" color="-13840069" legend="true">
@@ -61,8 +63,6 @@ end
6163
histogram [ wealth ] of turtles</update>
6264
</pen>
6365
</plot>
64-
<button x="426" y="51" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="149" display="create R plot image">create-r-plot</button>
65-
<input x="180" multiline="false" y="25" height="60" variable="filename" type="string" width="229">my_simple_economy_histogram.png</input>
6666
</widgets>
6767
<info><![CDATA[## WHAT IS IT?
6868

Code Examples/Extensions Examples/sr/ripleysK-example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ end
7474
; To the extent possible under law, Uri Wilensky has waived all
7575
; copyright and related or neighboring rights to this model.]]></code>
7676
<widgets>
77-
<view x="479" wrappingAllowedX="true" y="57" frameRate="30.0" minPycor="-16" height="321" showTickCounter="true" patchSize="9.61" fontSize="10" wrappingAllowedY="true" width="321" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
77+
<view x="479" wrappingAllowedX="true" y="57" frameRate="30.0" minPycor="-16" height="334" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="334" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
7878
<button x="7" y="97" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">go</button>
7979
<plot x="75" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="K(r)" y="55" xMin="0.0" height="355" legend="false" xMax="1.0" yMin="0.0" width="353" xAxis="r" display="Ripley's K function">
8080
<setup></setup>

Code Examples/Extensions Examples/sr/spearman-example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454
; To the extent possible under law, Uri Wilensky has waived all
5555
; copyright and related or neighboring rights to this model.]]></code>
5656
<widgets>
57-
<view x="468" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="166" showTickCounter="true" patchSize="4.91" fontSize="10" wrappingAllowedY="true" width="166" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
57+
<view x="468" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="169" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="169" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
5858
<button x="469" y="208" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
5959
<button x="536" y="208" height="35" disableUntilTicks="false" forever="true" kind="Observer" width="63">go</button>
6060
<plot x="5" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="rho" y="10" xMin="0.0" height="310" legend="false" xMax="10.0" yMin="-1.0" width="458" xAxis="time" display="Spearman's rho">

Code Examples/Extensions Examples/sr/wilcoxon-example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ end
6969
; To the extent possible under law, Uri Wilensky has waived all
7070
; copyright and related or neighboring rights to this model.]]></code>
7171
<widgets>
72-
<view x="403" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="297" showTickCounter="true" patchSize="8.9" fontSize="10" wrappingAllowedY="true" width="297" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
72+
<view x="403" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="301" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="true" width="301" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
7373
<button x="8" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
7474
<button x="77" y="11" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">go</button>
7575
<plot x="7" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="p-value" y="50" xMin="0.0" height="293" legend="false" xMax="1.0" yMin="0.0" width="388" xAxis="time" display="Wilcoxon Rank Sum Test">

Sample Models/Chemistry & Physics/Materials Science/Interstitial Diffusion.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ end
271271
; Copyright 2025 Uri Wilensky.
272272
; See Info tab for full copyright and license.]]></code>
273273
<widgets>
274-
<view x="308" wrappingAllowedX="false" y="235" frameRate="30.0" minPycor="-200" height="2432" showTickCounter="true" patchSize="12.1" fontSize="10" wrappingAllowedY="true" width="496" tickCounterLabel="ticks" maxPycor="0" updateMode="1" maxPxcor="40" minPxcor="0"></view>
274+
<view x="305" wrappingAllowedX="false" y="235" frameRate="30.0" minPycor="-200" height="2416" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="496" tickCounterLabel="ticks" maxPycor="0" updateMode="1" maxPxcor="40" minPxcor="0"></view>
275275
<slider x="10" step=".01" y="5" max="1" width="225" display="initial-bulk-concentration" height="50" min="0" direction="Horizontal" default="0.8" variable="initial-bulk-concentration"></slider>
276276
<slider x="10" step="1" y="60" max="world-width - 1" width="225" display="initial-columns-populated" height="50" min="0" direction="Horizontal" default="10.0" variable="initial-columns-populated"></slider>
277277
<button x="10" y="240" height="59" disableUntilTicks="true" forever="true" kind="Observer" width="107">go</button>

0 commit comments

Comments
 (0)