Skip to content

Commit df50014

Browse files
committed
Separated plot autoscale axes
1 parent d2195be commit df50014

338 files changed

Lines changed: 695 additions & 695 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/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" autoplot="true" yMin="0.0" width="200" sizeVersion="0" display="xcor">
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">
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" autoplot="true" yMin="0.0" width="200" sizeVersion="0" display="ycor">
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">
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" autoplot="true" yMin="0.0" width="200" sizeVersion="0" display="zcor">
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">
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" autoplot="true" yMin="0.0" width="260" sizeVersion="0" xAxis="time" display="Turtle Count">
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">
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" autoplot="false" yMin="0.0" width="294" sizeVersion="0" display="Energy Histogram">
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">
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" autoplot="true" yMin="0.0" width="294" sizeVersion="0" display="Speed Counts">
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">
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" autoplot="false" yMin="0.0" width="294" sizeVersion="0" display="Speed Histogram">
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">
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" autoplot="true" yMin="0.0" width="322" sizeVersion="0" xAxis="time" display="speeds">
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">
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" autoplot="true" yMin="0.0" width="261" sizeVersion="0" display="Average Energies">
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">
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" autoplot="false" yMin="0.0" width="260" sizeVersion="0" display="Average Speeds">
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">
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: 2 additions & 2 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" autoplot="true" yMin="0.0" width="205" sizeVersion="0" xAxis="time" display="Total Hydrogen Count">
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">
269269
<setup></setup>
270270
<update></update>
271271
<pen color="-13345367" legend="true" interval="1.0" mode="0" display="hydrogens">
@@ -294,7 +294,7 @@ the grid markings</note>
294294
patch vs different colored patch</note>
295295
<note x="15" y="60" height="30" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="180">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" autoplot="true" yMin="0.0" width="205" sizeVersion="0" display="Patch Distribution">
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">
298298
<setup></setup>
299299
<update>plot-pen-reset
300300
set-plot-pen-color h1-color

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" autoplot="true" yMin="0.0" width="262" sizeVersion="0" display="Traps triggered">
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">
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" autoplot="true" yMin="0.0" width="262" sizeVersion="0" display="Balls in the air">
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">
5858
<setup></setup>
5959
<update></update>
6060
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="default">

3D/Sample Models/Percolation 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ end
6767
<button x="162" y="17" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="81" display="setup">setup</button>
6868
<button x="328" y="17" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="81" display="go">go</button>
6969
<slider x="183" step="0.5" y="52" height="33" min="0.0" direction="Horizontal" max="99.0" default="29.0" variable="porosity" units="%" width="191" sizeVersion="0" display="porosity"></slider>
70-
<plot x="57" yMax="50.0" yAxis="oil" y="90" xMin="0.0" height="172" legend="false" xMax="30.0" autoplot="true" yMin="0.0" width="221" sizeVersion="0" xAxis="time" display="Percolating Oil">
70+
<plot x="57" yMax="50.0" yAxis="oil" y="90" xMin="0.0" height="172" legend="false" xMax="30.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="221" sizeVersion="0" xAxis="time" display="Percolating Oil">
7171
<setup></setup>
7272
<update></update>
7373
<pen color="-2674135" legend="true" interval="1.0" mode="0" display="default">
7474
<setup></setup>
7575
<update>plot count current-row with [pcolor = red]</update>
7676
</pen>
7777
</plot>
78-
<plot x="280" yMax="400.0" yAxis="total oil" y="90" xMin="0.0" height="172" legend="false" xMax="30.0" autoplot="true" yMin="0.0" width="221" sizeVersion="0" xAxis="time" display="Saturated Soil">
78+
<plot x="280" yMax="400.0" yAxis="total oil" y="90" xMin="0.0" height="172" legend="false" xMax="30.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="221" sizeVersion="0" xAxis="time" display="Saturated Soil">
7979
<setup></setup>
8080
<update></update>
8181
<pen color="-6459832" legend="true" interval="1.0" mode="0" display="default">

3D/Sample Models/Preferential Attachment 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ end
101101
; See Info tab for full copyright and license.]]></code>
102102
<widgets>
103103
<view3d wrappingAllowedZ="true" x="0" maxPycor="22" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="22" minPycor="-22" height="251" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPxcor="22" minPxcor="-22" minPzcor="-22"></view3d>
104-
<plot x="10" yMax="0.3" yAxis="log(# of nodes)" y="330" xMin="0.0" height="166" legend="false" xMax="0.3" autoplot="true" yMin="0.0" width="325" sizeVersion="0" xAxis="log(degree)" display="Degree Distribution (log-log)">
104+
<plot x="10" yMax="0.3" yAxis="log(# of nodes)" y="330" xMin="0.0" height="166" legend="false" xMax="0.3" autoPlotX="true" autoPlotY="true" yMin="0.0" width="325" sizeVersion="0" xAxis="log(degree)" display="Degree Distribution (log-log)">
105105
<setup></setup>
106106
<update><![CDATA[;; for this plot, the axes are logarithmic, so we can't
107107
;; use "histogram-from"; we have to plot the points
@@ -126,7 +126,7 @@ if plot? [
126126
<update></update>
127127
</pen>
128128
</plot>
129-
<plot x="10" yMax="10.0" yAxis="# of nodes" y="150" xMin="1.0" height="176" legend="false" xMax="10.0" autoplot="true" yMin="0.0" width="325" sizeVersion="0" xAxis="degree" display="Degree Distribution">
129+
<plot x="10" yMax="10.0" yAxis="# of nodes" y="150" xMin="1.0" height="176" legend="false" xMax="10.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="325" sizeVersion="0" xAxis="degree" display="Degree Distribution">
130130
<setup></setup>
131131
<update>if plot? [
132132
let max-degree max [count link-neighbors] of turtles

3D/Sample Models/Sandpile 3D.nlogox3d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ end
158158
<button x="37" y="11" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="102" display="setup empty">setup</button>
159159
<button x="38" y="94" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="103">go</button>
160160
<button x="39" y="129" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="102" display="go once">go</button>
161-
<plot x="161" yMax="1.0" yAxis="Log Frequency" y="11" xMin="0.0" height="299" legend="false" xMax="0.5" autoplot="true" yMin="0.0" width="299" sizeVersion="0" xAxis="Log Size of Avalanche" display="Log Size of Avalanche vs. Log Frequency">
161+
<plot x="161" yMax="1.0" yAxis="Log Frequency" y="11" xMin="0.0" height="299" legend="false" xMax="0.5" autoPlotX="true" autoPlotY="true" yMin="0.0" width="299" sizeVersion="0" xAxis="Log Size of Avalanche" display="Log Size of Avalanche vs. Log Frequency">
162162
<setup></setup>
163163
<update></update>
164164
<pen color="-16777216" legend="true" interval="1.0" mode="0" display="default">

0 commit comments

Comments
 (0)