From 9f4a9c777256d559050218f2a4e156fa70c8b31f Mon Sep 17 00:00:00 2001 From: Daniel Vedder <daniel.vedder@idiv.de> Date: Fri, 27 Oct 2023 09:37:27 +0200 Subject: [PATCH] Updated README --- README.md | 10 ++++++---- src/analysis/makieplots.jl | 6 ++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 21832d0..a43426c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # Persefone.jl + + **A multidisciplinary mechanistic model of agricultural landscapes and ecosystems in Europe.** ## Description -[Persefone.jl](https://git.idiv.de/persefone/persefone-model) models agricultural practice and +[Persefone.jl](https://persefone-model.eu/) models agricultural practice and how it impacts animal species at a landscape scale. It includes a farm submodel, a crop growth submodel, and individual-based models of multiple indicator species. Its aim is to investigate how changes in farm operations (e.g. through policy changes in the CAP) @@ -15,8 +17,8 @@ framework. It is currently in the early stages of development. ## Usage -*For the full documentation, open `docs/documentation.html` in a browser, or visit -[https://persefone-model.eu/documentation](https://persefone-model.eu/documentation).* +*For the full documentation, or visit the [website](https://persefone-model.eu/documentation). +To use Persefone.jl with a graphical user interface, see [here](https://git.idiv.de/persefone/persefone-desktop).* ### Installation @@ -26,7 +28,7 @@ language (1.9+). The recommended editors are [VSCode](https://www.julia-vscode.o To install package dependencies, open a Julia REPL in this folder and run `using Pkg; Pkg.activate("."); Pkg.instantiate()`. -### Running from the commandline +### Running from the command line This is the normal mode of operation. Simply execute `run.jl` in a terminal, typically like so (in Linux): diff --git a/src/analysis/makieplots.jl b/src/analysis/makieplots.jl index 1167b0d..6a6ef45 100644 --- a/src/analysis/makieplots.jl +++ b/src/analysis/makieplots.jl @@ -28,6 +28,8 @@ function visualisemap(model::AgentBasedModel,date=nothing,landcover=nothing) return f end isnothing(date) && (date = inds.Date[end]) + #XXX other colour schemes: :tab10, :Accent_8, :Dark2_8, :Paired_12, :Set1_9 + # https://juliagraphics.github.io/ColorSchemes.jl/stable/catalogue/ update_theme!(palette=(color=cgrad(:seaborn_bright, length(@param(nature.targetspecies))),), cycle=[:color]) @@ -51,8 +53,8 @@ Returns a Makie figure object. """ function populationtrends(model::AgentBasedModel) pops = model.datatables["populations"] - # create the labels needed for the ticks on the X axis - update_theme!(palette=(color=cgrad(:seaborn_bright, length(unique(pops.Species))),), + update_theme!(palette=(color=cgrad(:seaborn_bright, + length(@param(nature.targetspecies))),), cycle=[:color]) f = Figure() dates = @param(core.startdate):@param(core.enddate) -- GitLab