Label Position Example

Label Position Example preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

ccl 

Tagged by Modeling Commons System about 12 years ago

code example 

Tagged by Reuven M. Lerner about 11 years ago

Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 1039 times • Downloaded 68 times • Run 0 times
Download the 'Label Position 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

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

breed [circles circle]
breed [banners banner]

to setup
  clear-all
  set-default-shape circles "circle"
  create-circles 20 [
    setxy random-xcor random-ycor
    set size 2 + random 5
    attach-banner who
  ]
  reset-ticks
end 

to attach-banner [x]  ;; circle procedure
  hatch-banners 1 [
    set size 0
    set label x
    create-link-from myself [
      tie
      hide-link
    ]
  ]
end 

to reposition  ;; banner procedure
  move-to one-of in-link-neighbors
  set heading banner-angle
  fd banner-distance
end 

to go
  ask circles [ fd 0.01 ]
  ask banners [ reposition ]
  tick
end 


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

There are 4 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 almost 12 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky about 12 years ago Updated from NetLogo 5.0 Download this version

Attached files

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

This model does not have any ancestors.

This model does not have any descendants.