user3150368
user3150368

Reputation:

How to plot a vertical line every X step in NetLogo?

This might be really basic, but how can I plot a vertical line from Y= 0 to Y = plot-y-max every X time step ? I used if ticks mod 100 = 0 [plotxy ticks plot-y-max] but its not working.

Can anyone please help me with this simple problem ?

Upvotes: 1

Views: 861

Answers (1)

StephenGuerin
StephenGuerin

Reputation: 871

You could modify your approach to:

if ticks mod 100 = 0 [
  plot-pen-up
  plotxy ticks 0 
  plot-pen-down
  plotxy ticks plot-y-max 
]

Upvotes: 2

Related Questions