JuliaDynamics/Agents.jl

Heatmap of (discretized) spatial property with `ContinuousSpace`

開放

#924 建立於 2023年1月30日

 (0 則留言) (0 個反應) (0 位負責人)Julia (146 個分叉)batch import
enhancementgood first issueplotting

倉庫指標

星標
 (904 顆星)
PR 合併指標
 (平均合併 1天 7小時) (30 天內合併 4 個 PR)

描述

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.

貢獻者指南