Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetLogo time extension: Plotting graphs does not work?

Tags:

time

netlogo

The time extensions seems to update the tick counter in the interface view, but not for the plots? I am using the MousetrapDiscreteEvents.nlogo file in the Examples folder of the the time extension.

Plotting graphs via right clicking the plot and adding the following line doesn't work:

plot count patches with [pcolor = yellow]

However, if written in code it does work, like the authoer of the time extensions demonstrates:

set-current-plot "Untriggered traps"
plotxy ticks count patches with [pcolor = yellow]

But why doesn't the first one work?

like image 516
MJQZ1347 Avatar asked Aug 31 '26 10:08

MJQZ1347


1 Answers

Perhaps the extension is doing the equivalent of tick-advance (dictionary entry), which does not trigger plot updates? If so, you might report it as a bug to the extension author.

But anyway, you can work around it by calling update-plots (dictionary entry) yourself at the appropriate points in your code.

like image 71
Seth Tisue Avatar answered Sep 03 '26 23:09

Seth Tisue