【发布时间】:2017-04-08 07:19:47
【问题描述】:
我的代码需要帮助,我正在制作一个图表,其中我用刻度来潜水人口,它代表时间。每当我绘制它时,它总是在图表上显示错误的数字。如果我的人口是 1000 并且它在第二个刻度上,它应该是 500,但在图表上它显示在第一个刻度上是 500。 This is the graph
globals [
]
to setup ;; resets everything to appropriate initial values
clear-all
reset-ticks
end
to go
tick
update-and-plot
end
to update-and-plot ;; updates values for plot
update-and-plot-m/n
end
to update-and-plot-m/n
set-current-plot "Population"
plot ( NUm / ticks )
end
【问题讨论】:
-
@Charles - 你应该将你的评论作为答案,以便它可以被接受