Plotting Example

Plotting Example preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 1988 times • Downloaded 114 times • Run 1 time
Download the 'Plotting Example' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Plotting Codes (Question)

Hi Uri! Congratulations for the example. I'm new in NetLogo and this example was very helpful. I just was wandering how to configured the plot in the code, instead of in the interface: pens, axes, etc. Thanks!

Posted over 10 years ago

Click to Run Model

to setup
  clear-all
  create-turtles 1
  [                                 ; create one turtle
    set color red
    set xcor (2 + min-pxcor)        ; set the turtle's initial position and heading
    set ycor 0
    set heading 0
    set size 5                      ; easier to see this way
    pen-down
  ]
  reset-ticks
end 

to go
  ask turtles
  [
    fd (pi * (max-pycor - 2) / 360) ; move in circle
    rt 0.5
  ]
  tick
end 

;; the actual plotting code is in the plot itself, in the Interface tab


; Public Domain:
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.

There are 10 versions of this model.

Uploaded by When Description Download
Uri Wilensky almost 11 years ago Updated to NetLogo 5.0.4 Download this version
Uri Wilensky over 11 years ago Updated version tag Download this version
Uri Wilensky over 12 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky almost 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky almost 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky almost 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky almost 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky almost 14 years ago Model from NetLogo distribution Download this version
Uri Wilensky almost 14 years ago Plotting Example Download this version
Uri Wilensky almost 14 years ago Plotting Example Download this version

Attached files

File Type Description Last updated
Plotting Example.png preview Preview for 'Plotting Example' about 11 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.