# AbstractPlotting documentation?

**URL:** <https://discourse.julialang.org/t/abstractplotting-documentation/25296>\
**Category:** Visualization\
**Created:** [June 14, 2019, 9:09am UTC](https://discourse.julialang.org/t/abstractplotting-documentation/25296 "2019-06-14T09:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [June 14, 2019, 9:09am UTC](https://discourse.julialang.org/t/abstractplotting-documentation/25296/1 "2019-06-14T09:09:11Z")

</div>

Is there a documentation for AbstractPlotting? I would like to know how to couple the height of two scenes(heatmap, colorbar) and how to detect that the window of an interactive scene is closed.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [June 14, 2019, 4:14pm UTC](https://discourse.julialang.org/t/abstractplotting-documentation/25296/2 "2019-06-14T16:14:28Z")

</div>

Makie & AbstractPlotting have the same documentation (Makie is just AbstractPlotting + a standard rendering Backend).

> that the window of an interactive scene is closed.

`isopen(scene)`

> I would like to know how to couple the height of two scenes(heatmap, colorbar)

That may be a bit more complicated… You can take a look at: [https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/layouting/layouting.jl#L182](https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/layouting/layouting.jl#L182)

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [June 15, 2019, 9:51am UTC](https://discourse.julialang.org/t/abstractplotting-documentation/25296/3 "2019-06-15T09:51:14Z")

</div>

I managed to use isopen. Is there a better way to do this?

```julia
using Makie, FFTW, LinearAlgebra

function wait(scene::Scene)
    while isopen(scene)
        sleep(1)
    end
end

function gui_select_g(img::AbstractArray{T,2}) where T <: Number
    scene = Scene()
    gvectors = []

    on(scene.events.mousebuttons) do buttons
        if ispressed(scene, Mouse.left)
            pos = to_world(scene, Point2f0(scene.events.mouseposition[]))
            push!(gvectors,pos)
        end
        return
    end

    rfft = fft(img)
    powerspectrum = log.(norm.(fftshift(rfft)).+floatmin(Float32))
    heatmap!(scene, powerspectrum, transpose=true, yflip=true)
    display(AbstractPlotting.PlotDisplay(), scene)
    wait(scene)
    gvectors
end

@show gui_select_g(rand(100,100))

```
