JuliaDynamics/Agents.jl

Heatmap of (discretized) spatial property with `ContinuousSpace`

オープン

#924 opened on 2023/01/30

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (146 件のフォーク)batch import
enhancementgood first issueplotting

Repository metrics

Stars
 (904 個のスター)
PR merge metrics
 (平均マージ 1d 7h) (30d で 4 merged PRs)

説明

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.

コントリビューターガイド