Contour3D does not work

Hello =)
I am very new to Julia…
I want to make a simple contour but it doesn’t work :frowning:

I alwyas have the error : ERROR: Can’t convert to a Vector. Please supply a range/vector/interval

using GLMakie

function meshgrid(x::AbstractVector, y::AbstractVector)
    X = repeat(x', inner=(length(y), 1))  # Crée une matrice X
    Y = repeat(y', inner=(length(y), 1))    # Crée une matrice Y
    return X, Y
end


x_vals = range(-5, stop=5, length=100)  
y_vals = range(-5, stop=5, length=100) 

X, Y = meshgrid(x_vals, y_vals)

Z = sin.(X .^ 2 + Y .^ 2)  

f = Figure(fontsize=18, font="Times New Roman")
ax1 = Axis3(f[1, 1], aspect = (1, 1, 1),
            xlabel = "x [m]", ylabel = "y [m]", zlabel = "z [m]")
    contour3d!(ax1, X, Y, Z, levels =20)
f

Could you help ? =)
Thanks

You don’t need meshgrid, pass x_vals and y_vals directly to contour3d like shown in the docs contour3d | Makie