I created a histogram of a variable in my model in NetLogo 5.0.5, but the histogram continues to show the row, not the bars that I want. I use set-histogram-num-bars n in the bank settings, but nothing changes. In the histogram example in the model library, I also get a row, not a row, even when I copy the settings from the previous histogram graph.
In my model, turtles have their own variable reliability, which ranges from 0 to 10 as a continuous function. I have 2,000 turtles. In the graph area, I added the following:
;;plot setup commands
set-plot-x range 0 10
set-plot-y-range 0 800
set-histogram-num-bars 10
;;plot pens
histogram [reliability] of turtles
Can anyone see where I can go wrong?
Hi
Simon
source
share