How to make scrool zoom in a single axis in Makie

I would like to modify the default behavior in Makie so that scrolling onty changes the vertical axis scale, and shift-scroll changes the horizontal scale. How can I change the behavior of the event based on modifier keys? And how to I reuse the normal zoom functionality? And how do I make this the default behavior in my machine using setup.jl?

You can restrict the axis that is zoomed via the xzoomlock and yzoomlock attributes and then set the keys that set the axis that is zoomed via the xzoomkey. See the this section in the docs: Axis3 | Makie for 3D and this for 2D Axis | Makie.

2 Likes

First time I came across this, whoa. Mind=blow. Makie is so good. Thanks! :slight_smile:

1 Like