Hi Guys,
by using BBox() one can create an inset plot. The location is determined by the arguments, which are given as pixels.
This works mostly but for certain use cases, it would be nice to specify an absolute location, i.e. in terms of coordinates from the main plot.
maybe this example demonstrates what I mean:
using CairoMakie
let
    x = -3:0.05:3
    y = exp.(-x .^ 2)
    fig = Figure(resolution = (600, 400))
    ax1 = Axis(fig[1, 1])
    lines!(ax1, x, y)
    scatter!(ax1,[1.2],[0.6],label = "I want the inset centered at (x,y) = (1.2,0.6)")
    axislegend()
    # inset
    ax2 = Axis(fig, bbox = BBox(140, 250, 200, 300), title = "inset  at (140, 250, 200, 300)")
    
    lines!(ax2, x, y, color = :red)
    display(fig)
end

Is there a simple way of doing this?

