Disable Rectangle Zoom Makie

Hi, I am making an interactive plot in (W)GLMakie, and am wondering how to disable the default Axis interactivity. I have disabled zoom and panning, but I’m having trouble disabling rectangle zoom. What I have:

using GLMakie
x, y = rand(10), rand(10)
f,a,s = scatter(x,y)
a.xzoomlock = true
a.yzoomlock = true
a.ypanlock = true
a.xpanlock = true
a.xrectzoom = true
a.yrectzoom = true
f

You can deregister or deactivate that interaction as described here Axis | Makie

1 Like

Brilliant thanks. Posted for completeness:

using GLMakie
x, y = rand(10), rand(10)
f,a,s = scatter(x,y)
interactions(a) # Lists interactions
deregister_interaction!(a, :rectanglezoom)
deregister_interaction!(a, :dragpan)
deregister_interaction!(a, :scrollzoom)
deregister_interaction!(a, :limitreset)
f
1 Like