Begin micro-behaviour:

Begin description:

Updates the range and interval of the Wealth Histogram.

End description

Update histogram

Begin NetLogo code:

set-current-plot "Wealth Histogram"
set-plot-x-range 0 (max [my-sugar] of objects)
set-plot-pen-interval (max [my-sugar] of objects) / 3

End NetLogo code