JuliaDynamics/Agents.jl

Heatmap of (discretized) spatial property with `ContinuousSpace`

Open

#924 ouverte le 30 janv. 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Julia (146 forks)batch import
enhancementgood first issueplotting

Métriques du dépôt

Stars
 (904 stars)
Métriques de merge PR
 (Merge moyen 12h 3m) (1 PR mergée en 30 j)

Description

See https://discourse.julialang.org/t/combining-continuousspace-with-discrete-grid-property-in-interactivedynamics/93684/5

The best way forwards I think is to make a Pull Request at InteractiveDynamics.jl that allows this heatmap out of the box. Makie.jl supports a heatmap with arbitrary coordinates. So first one makes the coordinates, nbinx, nbiny = size(property) . Then coordx = range(0, 1; length = nbinx) and same for y . Then, heatmap!(ax, coordx, coordy, property; ...) . Shouldn't be too hard.

Guide contributeur