Skip to content

Commit 07261ac

Browse files
committed
Added markdown property to note widgets
1 parent df50014 commit 07261ac

434 files changed

Lines changed: 1279 additions & 1279 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3D/Code Examples/Turtle Perspective Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ end
4040
<button x="23" y="143" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="123">watch turtle 0</button>
4141
<button x="23" y="177" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="123">follow turtle 0</button>
4242
<button x="23" y="211" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="123">ride turtle 0</button>
43-
<note x="25" y="90" height="18" textColorLight="-16777216" fontSize="11" width="150">Perspective</note>
44-
<note x="170" y="88" height="18" textColorLight="-16777216" fontSize="11" width="150">Observer position</note>
43+
<note x="25" y="90" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Perspective</note>
44+
<note x="170" y="88" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Observer position</note>
4545
</widgets>
4646
<info><![CDATA[## WHAT IS IT?
4747

3D/Code Examples/Turtle and Observer Motion Example 3D.nlogox3d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ display</button>
5757
display</button>
5858
<button x="49" y="329" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="140">ride turtle 0</button>
5959
<button x="331" y="329" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="140">reset-perspective</button>
60-
<note x="263" y="59" height="18" textColorLight="-16777216" fontSize="11" width="150">Turtle movement</note>
61-
<note x="28" y="197" height="18" textColorLight="-16777216" fontSize="11" width="150">Observer (point of view)</note>
62-
<note x="22" y="58" height="18" textColorLight="-16777216" fontSize="11" width="150">Turtle position</note>
60+
<note x="263" y="59" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Turtle movement</note>
61+
<note x="28" y="197" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Observer (point of view)</note>
62+
<note x="22" y="58" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Turtle position</note>
6363
<button x="124" y="363" height="33" disableUntilTicks="false" forever="true" kind="Observer" width="140" display="orbit-right">orbit-right 1
6464
display</button>
6565
<button x="265" y="363" height="33" disableUntilTicks="false" forever="true" kind="Observer" width="140" display="orbit-left">orbit-left 1

3D/Code Examples/Uniform Distribution on a Sphere Example 3D.nlogox3d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ end
3030
<view3d wrappingAllowedZ="true" x="0" maxPycor="16" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="16" minPycor="-16" height="455" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPxcor="16" minPxcor="-16" minPzcor="-16"></view3d>
3131
<button x="56" y="75" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="150">setup-uniform</button>
3232
<slider x="48" step="1" y="36" height="33" min="0" direction="Horizontal" max="10000" default="5000.0" variable="number" width="172" sizeVersion="0" display="number"></slider>
33-
<plot x="33" yMax="13.0" y="150" xMin="-16.0" height="150" legend="false" xMax="16.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="200" sizeVersion="0" display="xcor">
33+
<plot x="33" autoPlotX="true" yMax="13.0" autoPlotY="true" y="150" xMin="-16.0" height="150" legend="false" xMax="16.0" yMin="0.0" width="200" sizeVersion="0" display="xcor">
3434
<setup></setup>
3535
<update></update>
3636
<pen color="-16777216" legend="true" interval="1.0" mode="1" display="xcor">
3737
<setup></setup>
3838
<update>histogram [xcor] of turtles</update>
3939
</pen>
4040
</plot>
41-
<plot x="33" yMax="10.0" y="299" xMin="-16.0" height="150" legend="false" xMax="16.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="200" sizeVersion="0" display="ycor">
41+
<plot x="33" autoPlotX="true" yMax="10.0" autoPlotY="true" y="299" xMin="-16.0" height="150" legend="false" xMax="16.0" yMin="0.0" width="200" sizeVersion="0" display="ycor">
4242
<setup></setup>
4343
<update></update>
4444
<pen color="-16777216" legend="true" interval="1.0" mode="1" display="ycor">
4545
<setup></setup>
4646
<update>histogram [ycor] of turtles</update>
4747
</pen>
4848
</plot>
49-
<plot x="33" yMax="10.0" y="448" xMin="-16.0" height="150" legend="false" xMax="16.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="200" sizeVersion="0" display="zcor">
49+
<plot x="33" autoPlotX="true" yMax="10.0" autoPlotY="true" y="448" xMin="-16.0" height="150" legend="false" xMax="16.0" yMin="0.0" width="200" sizeVersion="0" display="zcor">
5050
<setup></setup>
5151
<update></update>
5252
<pen color="-16777216" legend="true" interval="1.0" mode="1" display="zcor">

3D/Sample Models/Follower 3D.nlogox3d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ end
8282
<slider x="62" step="1.0" y="183" height="33" min="0" direction="Horizontal" max="359.0" default="70.0" variable="waver" width="172" sizeVersion="0" display="waver"></slider>
8383
<button x="65" y="26" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77">setup</button>
8484
<button x="149" y="26" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="75">go</button>
85-
<plot x="316" yMax="350.0" yAxis="#" y="83" xMin="0.0" height="150" legend="true" xMax="100.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="260" sizeVersion="0" xAxis="time" display="Turtle Count">
85+
<plot x="316" autoPlotX="true" yMax="350.0" autoPlotY="true" yAxis="#" y="83" xMin="0.0" height="150" legend="true" xMax="100.0" yMin="0.0" width="260" sizeVersion="0" xAxis="time" display="Turtle Count">
8686
<setup>set-plot-y-range 0 num-turtles</setup>
8787
<update></update>
8888
<pen color="-2064490" legend="true" interval="1.0" mode="0" display="unattached">

3D/Sample Models/GasLab/GasLab Free Gas 3D.nlogox3d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ end
496496
<button x="64" y="159" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="83">setup</button>
497497
<slider x="52" step="1" y="46" height="33" min="1" direction="Horizontal" max="50" default="20.0" variable="number-of-particles" width="206" sizeVersion="0" display="number-of-particles"></slider>
498498
<monitor x="328" precision="2" y="11" height="45" fontSize="11" width="140" sizeVersion="0" display="average speed">avg-speed</monitor>
499-
<plot x="328" yMax="10.0" y="310" xMin="0.0" height="196" legend="true" xMax="400.0" autoPlotX="false" autoPlotY="false" yMin="0.0" width="294" sizeVersion="0" display="Energy Histogram">
499+
<plot x="328" autoPlotX="false" yMax="10.0" autoPlotY="false" y="310" xMin="0.0" height="196" legend="true" xMax="400.0" yMin="0.0" width="294" sizeVersion="0" display="Energy Histogram">
500500
<setup>set-plot-x-range 0 (0.5 * (init-particle-speed * 2) * (init-particle-speed * 2) * particle-mass)
501501
set-plot-y-range 0 ceiling (number-of-particles / 6)</setup>
502502
<update></update>
@@ -523,7 +523,7 @@ draw-vert-line avg-energy</update>
523523
</pen>
524524
</plot>
525525
<monitor x="328" precision="2" y="264" height="45" fontSize="11" width="149" sizeVersion="0" display="average energy">avg-energy</monitor>
526-
<plot x="13" yMax="100.0" y="309" xMin="0.0" height="197" legend="true" xMax="20.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="294" sizeVersion="0" display="Speed Counts">
526+
<plot x="13" autoPlotX="true" yMax="100.0" autoPlotY="true" y="309" xMin="0.0" height="197" legend="true" xMax="20.0" yMin="0.0" width="294" sizeVersion="0" display="Speed Counts">
527527
<setup></setup>
528528
<update></update>
529529
<pen color="-2674135" legend="true" interval="1.0" mode="0" display="fast">
@@ -540,7 +540,7 @@ draw-vert-line avg-energy</update>
540540
</pen>
541541
</plot>
542542
<switch x="52" y="13" height="33" on="true" variable="collide?" width="103" sizeVersion="0" display="collide?"></switch>
543-
<plot x="328" yMax="100.0" y="57" xMin="0.0" height="197" legend="true" xMax="50.0" autoPlotX="false" autoPlotY="false" yMin="0.0" width="294" sizeVersion="0" display="Speed Histogram">
543+
<plot x="328" autoPlotX="false" yMax="100.0" autoPlotY="false" y="57" xMin="0.0" height="197" legend="true" xMax="50.0" yMin="0.0" width="294" sizeVersion="0" display="Speed Histogram">
544544
<setup>set-plot-x-range 0 (init-particle-speed * 2)
545545
set-plot-y-range 0 ceiling (number-of-particles / 6)</setup>
546546
<update></update>

3D/Sample Models/GasLab/GasLab Single Collision 3D.nlogox3d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ end
513513
<monitor x="188" precision="3" y="344" height="45" fontSize="11" width="158" sizeVersion="0" display="speed of blue">[speed] of particle 1</monitor>
514514
<monitor x="80" precision="3" y="399" height="45" fontSize="11" width="102" sizeVersion="0" display="average speed">([speed] of particle 0 + [speed] of particle 1) / 2</monitor>
515515
<monitor x="188" precision="3" y="399" height="45" fontSize="11" width="108" sizeVersion="0" display="average energy">([energy] of particle 0 + [energy] of particle 1) / 2</monitor>
516-
<plot x="24" yMax="0.0" yAxis="speed" y="455" xMin="0.0" height="150" legend="true" xMax="0.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="322" sizeVersion="0" xAxis="time" display="speeds">
516+
<plot x="24" autoPlotX="true" yMax="0.0" autoPlotY="true" yAxis="speed" y="455" xMin="0.0" height="150" legend="true" xMax="0.0" yMin="0.0" width="322" sizeVersion="0" xAxis="time" display="speeds">
517517
<setup></setup>
518518
<update></update>
519519
<pen color="-2064490" legend="true" interval="1.0" mode="0" display="pink">

3D/Sample Models/GasLab/GasLab Two Gas 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ end
641641
<button x="40" y="222" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="93">go</button>
642642
<button x="40" y="189" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="93">setup</button>
643643
<slider x="20" step="1" y="74" height="33" min="1" direction="Horizontal" max="50" default="10.0" variable="num-magentas" width="172" sizeVersion="0" display="num-magentas"></slider>
644-
<plot x="388" yMax="500.0" y="217" xMin="0.0" height="196" legend="true" xMax="1.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="261" sizeVersion="0" display="Average Energies">
644+
<plot x="388" autoPlotX="true" yMax="500.0" autoPlotY="true" y="217" xMin="0.0" height="196" legend="true" xMax="1.0" yMin="0.0" width="261" sizeVersion="0" display="Average Energies">
645645
<setup></setup>
646646
<update></update>
647647
<pen color="-11221820" legend="true" interval="10.0" mode="0" display="cyan">
@@ -653,7 +653,7 @@ end
653653
<update>plotxy ticks avg-energy-magenta</update>
654654
</pen>
655655
</plot>
656-
<plot x="389" yMax="55.0" y="18" xMin="0.0" height="197" legend="true" xMax="1.0" autoPlotX="false" autoPlotY="false" yMin="0.0" width="260" sizeVersion="0" display="Average Speeds">
656+
<plot x="389" autoPlotX="false" yMax="55.0" autoPlotY="false" y="18" xMin="0.0" height="197" legend="true" xMax="1.0" yMin="0.0" width="260" sizeVersion="0" display="Average Speeds">
657657
<setup></setup>
658658
<update></update>
659659
<pen color="-11221820" legend="true" interval="5.0" mode="0" display="cyan">

3D/Sample Models/Hydrogen Diffusion 3D.nlogox3d

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ end
265265
<slider x="235" step=".01" y="25" height="33" min="0" direction="Horizontal" max="1" default="0.05" variable="p4to3" width="195" sizeVersion="0" display="p4to3"></slider>
266266
<slider x="235" step=".01" y="60" height="33" min="0" direction="Horizontal" max="1" default="0.05" variable="p3to2" width="195" sizeVersion="0" display="p3to2"></slider>
267267
<slider x="235" step="0.01" y="95" height="33" min="0" direction="Horizontal" max="1" default="0.05" variable="p2to1" width="195" sizeVersion="0" display="p2to1"></slider>
268-
<plot x="450" yMax="10.0" yAxis="h" y="140" xMin="0.0" height="145" legend="false" xMax="10.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="205" sizeVersion="0" xAxis="time" display="Total Hydrogen Count">
268+
<plot x="450" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="h" y="140" xMin="0.0" height="145" legend="false" xMax="10.0" yMin="0.0" width="205" sizeVersion="0" xAxis="time" display="Total Hydrogen Count">
269269
<setup></setup>
270270
<update></update>
271271
<pen color="-13345367" legend="true" interval="1.0" mode="0" display="hydrogens">
@@ -281,20 +281,20 @@ end
281281
<switch x="120" y="260" height="33" on="true" variable="h2-on?" width="102" sizeVersion="0" display="h2-on?"></switch>
282282
<switch x="120" y="295" height="33" on="true" variable="h1-on?" width="102" sizeVersion="0" display="h1-on?"></switch>
283283
<slider x="235" step="0.01" y="295" height="33" min="0" direction="Horizontal" max="2" default="0.1" variable="red-diffuse" width="195" sizeVersion="0" display="red-diffuse"></slider>
284-
<note x="15" y="225" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="215">Turns on/off the color visualizations
284+
<note x="15" y="225" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="215" markdown="false">Turns on/off the color visualizations
285285
for the nth free hydrogen</note>
286286
<switch x="15" y="175" height="33" on="true" variable="grid-draw" width="122" sizeVersion="0" display="grid-draw"></switch>
287287
<monitor x="450" precision="3" y="80" height="45" fontSize="11" width="205" sizeVersion="0" display="Fraction of Surface H Remaining">(sum [h-count - 1] of patches with [patch-type = "surface"]) / (3 * count patches with [patch-type = "surface"])</monitor>
288288
<monitor x="450" precision="3" y="25" height="45" fontSize="11" width="205" sizeVersion="0" display="Percent of Hydrogen Remaining">(h-remain / h-total) * 100</monitor>
289-
<note x="15" y="145" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205">Enables or disables
289+
<note x="15" y="145" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205" markdown="false">Enables or disables
290290
the grid markings</note>
291-
<note x="235" y="10" height="26" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205">Hydrogen Desorption Probabilities</note>
292-
<note x="235" y="145" height="26" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205">Hydrogen Absorption Probabilities</note>
293-
<note x="235" y="250" height="40" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="210">Probability to move to depleted red
291+
<note x="235" y="10" height="26" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205" markdown="false">Hydrogen Desorption Probabilities</note>
292+
<note x="235" y="145" height="26" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="205" markdown="false">Hydrogen Absorption Probabilities</note>
293+
<note x="235" y="250" height="40" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="210" markdown="false">Probability to move to depleted red
294294
patch vs different colored patch</note>
295-
<note x="15" y="60" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="180">Simulation termination %
295+
<note x="15" y="60" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="180" markdown="false">Simulation termination %
296296
(of initial hydrogen)</note>
297-
<plot x="450" yMax="10.0" y="310" xMin="0.0" height="150" legend="false" xMax="4.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="205" sizeVersion="0" display="Patch Distribution">
297+
<plot x="450" autoPlotX="true" yMax="10.0" autoPlotY="true" y="310" xMin="0.0" height="150" legend="false" xMax="4.0" yMin="0.0" width="205" sizeVersion="0" display="Patch Distribution">
298298
<setup></setup>
299299
<update>plot-pen-reset
300300
set-plot-pen-color h1-color

3D/Sample Models/Life 3D.nlogox3d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ end
4343
<slider x="35" step="1" y="223" height="33" min="0" direction="Horizontal" max="26" default="4.0" variable="r2" width="196" sizeVersion="0" display="r2"></slider>
4444
<slider x="36" step="1" y="319" height="33" min="1" direction="Horizontal" max="26" default="2.0" variable="r3" width="191" sizeVersion="0" display="r3"></slider>
4545
<slider x="36" step="1" y="363" height="33" min="1" direction="Horizontal" max="26" default="3.0" variable="r4" width="192" sizeVersion="0" display="r4"></slider>
46-
<note x="36" y="152" height="18" textColorLight="-16777216" fontSize="11" width="52">RULES</note>
47-
<note x="35" y="262" height="42" textColorLight="-16777216" fontSize="11" width="257"><![CDATA[If an empty cell with n living neighbors has
46+
<note x="36" y="152" height="18" textColorLight="-16777216" fontSize="11" width="52" markdown="false">RULES</note>
47+
<note x="35" y="262" height="42" textColorLight="-16777216" fontSize="11" width="257" markdown="false"><![CDATA[If an empty cell with n living neighbors has
4848
r1 <= n <= r2, the cell becomes alive.]]></note>
49-
<note x="37" y="402" height="42" textColorLight="-16777216" fontSize="11" width="261"><![CDATA[If a living cell with n living neighbors has
49+
<note x="37" y="402" height="42" textColorLight="-16777216" fontSize="11" width="261" markdown="false"><![CDATA[If a living cell with n living neighbors has
5050
n < r3 or n > r4, the cell dies.]]></note>
5151
</widgets>
5252
<info><![CDATA[## WHAT IS IT?

3D/Sample Models/Mousetraps 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ end
4646
<button x="65" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="72">setup</button>
4747
<button x="149" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="76">go</button>
4848
<slider x="63" step="0.05" y="55" height="33" min="0" direction="Horizontal" max="0.4" default="0.3" variable="power" width="167" sizeVersion="0" display="power"></slider>
49-
<plot x="19" yMax="100.0" y="96" xMin="0.0" height="171" legend="false" xMax="10.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="262" sizeVersion="0" display="Traps triggered">
49+
<plot x="19" autoPlotX="true" yMax="100.0" autoPlotY="true" y="96" xMin="0.0" height="171" legend="false" xMax="10.0" yMin="0.0" width="262" sizeVersion="0" display="Traps triggered">
5050
<setup></setup>
5151
<update></update>
5252
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="default">
5353
<setup></setup>
5454
<update>plot count patches with [ pcolor = red ]</update>
5555
</pen>
5656
</plot>
57-
<plot x="19" yMax="100.0" y="268" xMin="0.0" height="171" legend="false" xMax="10.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="262" sizeVersion="0" display="Balls in the air">
57+
<plot x="19" autoPlotX="true" yMax="100.0" autoPlotY="true" y="268" xMin="0.0" height="171" legend="false" xMax="10.0" yMin="0.0" width="262" sizeVersion="0" display="Balls in the air">
5858
<setup></setup>
5959
<update></update>
6060
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="default">

0 commit comments

Comments
 (0)