# Move a plane with slider in Makie.jl

**URL:** <https://discourse.julialang.org/t/move-a-plane-with-slider-in-makie-jl/53258>\
**Category:** Visualization\
**Tags:** plotting, makie\
**Created:** [January 12, 2021, 10:06pm UTC](https://discourse.julialang.org/t/move-a-plane-with-slider-in-makie-jl/53258 "2021-01-12T22:06:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flausi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/flausi/32/19847_2.png) [@Flausi](https://discourse.julialang.org/u/Flausi)\
**Post date:** [January 12, 2021, 10:06pm UTC](https://discourse.julialang.org/t/move-a-plane-with-slider-in-makie-jl/53258/1 "2021-01-12T22:06:53Z")

</div>

Hello,

I tried to use Makie.jl to move a layer in a spatial plot via a slider and update the data depending on how the slider is set. This actually works quite well, but the layer is not moved with the ‘transformation - attribute’. Can anyone imagine what the reason for this is?

A related question would be if I need to use the lift function twice to change two variables through a slider, or is there another way?

Thanks a lot

```julia
    sl = layout[2, 1] = LSlider(scene, range = data[:, 1], startvalue = 30)

    sliceXY = lift(sl.value) do val1
       mat[val1, :, :]
    end

    posXY = lift(sl.value) do val2
       data[val2, 2] / Crop
    end

    AbstractPlotting.heatmap!(sf, sfy, sfz, sliceXY, transformation = (:yz, posXY))

```
