Reputation: 2687
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?
Upvotes: 3
Views: 688
Reputation: 30453
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.
Upvotes: 3