Closed bjarthur closed 3 weeks ago
so just to be clear, i know that this is documented not to be supported, just wondering why. is there a suggested work around, like maybe manually drawing a bunch of squares?
here's a workaround:
on(events(fig).mousebutton, priority = 2) do event
if event.button == Mouse.left && event.action == Mouse.release
xy = mouseposition(ax) # data coords
i,j = round.(xy) # grid coords
1<=i<=3 && 1<=j<=3 && @info i,j
end
return Consume(false)
end
pick
ing on a heatmap always returns 0 no matter what square was clicked on:would be super useful if this returned a cartesian or linear index, much like it does for scatter: