My goal is to click the cell in heatmap and got its index.
Currently it is implemented the following way
on(events(f).mousebutton, priority = 2) do event
if event.button == Mouse.left && event.action == Mouse.press
i = 0
_, i = pick(ax.scene)
i = i - size(m, 1) - 2
end
end
And indexing is done by pick() and it is implemented weirdly:
Do you know how to change it so it will take one color cell as an index, not half of one and half of another cells?