Open
Description
When using abmplot(...)
there is often a colobar with the heatmap. One can pass kwargs such as the color into this function.
Suppose I am setting up a plot and using the heatkwargs
variable, perhaps I can put label
here? Then if it is present the plot adds a label to the colorbar.
heatkwargs = (
colormap=[colorant"#174036", colorant"#cc4e5c"],
colorrange=(0, model.harvest_time),
label = "Plant age")
plotkwargs = (;
agent_color=agcolor,
agent_size=8,
agent_marker=agshape,
offset=aoffset,
agentsplotkwargs=(strokewidth=1.0, strokecolor=:black),
heatarray=arraycolor,
heatkwargs=heatkwargs,
)
Describe the solution you'd like
A clear and concise description of what you want to happen.
Here:
Agents.jl/ext/AgentsVisualizations/src/abmplot.jl
Lines 180 to 193 in 626e605
and here:
Agents.jl/ext/AgentsVisualizations/src/abmplot.jl
Lines 96 to 132 in 626e605
I just make my own plot for these situation and do not use the abmplot function.