diff --git a/docs/src/assets/screenshot.png b/docs/src/assets/screenshot.png index 6934cbfd02e40ebebd1cf1cbfdec3825a0572297..7903c81766bd9fc6bb082b4c4327ea359e3a79ac 100644 Binary files a/docs/src/assets/screenshot.png and b/docs/src/assets/screenshot.png differ diff --git a/src/analysis/makieplots.jl b/src/analysis/makieplots.jl index 97b599c59dc1dd2b65f451bd22ad933eb2040d8c..c2349949cb1ca7f0c3fc41054c73f11a6fe2ec28 100644 --- a/src/analysis/makieplots.jl +++ b/src/analysis/makieplots.jl @@ -56,9 +56,9 @@ function populationtrends(model::AgentBasedModel) update_theme!(palette=(color=cgrad(:seaborn_bright, ncolors),), cycle=[:color]) f = Figure() dates = @param(core.startdate):@param(core.enddate) + axlimits = (1, length(dates), 0, maximum(pops[!,:Abundance])) ax = Axis(f[1,1], xlabel="Date", ylabel="Population size", - limits=((1, length(dates)), nothing), xticks = gettickmarks(dates)) - #XXX Y axis doesn't reach 0? + limits=axlimits, xticks=gettickmarks(dates)) for s in @param(nature.targetspecies) points = @select!(@subset(pops, :Species .== s), :Abundance) iszero(size(points)[1]) && continue