JuliaDynamics/Agents.jl
Auf GitHub ansehenHeatmap of (discretized) spatial property with `ContinuousSpace`
Open
#924 geöffnet am 30. Jan. 2023
enhancementgood first issueplotting
Repository-Metriken
- Stars
- (904 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 12h 3m) (1 gemergte PR in 30 T)
Beschreibung
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.