Reputation: 11
Changing the patch size to a value less than 1.0 in the Model Settings dialog and then saving and reopening the model leaves the graphics window the same size.
The patch size value is still reported correctly in Model Settings.
Am I missing something?
Attached are screenshots of this problem. I have not run setup
or any other routine, I just opened the model. My code does not contain set-patch-size
.
Shown are patch sizes of 1.0, 0.5, and 0.25, which all produce identical graphics windows (in black). A screenshot of patch size of 1.5 is also included to illustrate that NetLogo honors this value and resizes the graphics window accordingly (note the scroll bars).
Any help is appreciated!
Upvotes: 1
Views: 56
Reputation: 10336
Edit:
I was later able to replicate the user's original behavior in both 6.0.2 and 6.0.4.
Which version of NetLogo are you using? The patch size view preserved for me in 6.0.2:
Opened after saving with patch size 1:
Opened after saving with patch size 0.5:
However, this may not really matter, other than for viewing purposes. Is the worry that your distance values will be off? Patch size is really just for viewing purposes and doesn't really have anything to do with model function- for example fd 1
will always move the turtle forward the width of one patch, regardless of patch size.
Upvotes: 3