I am trying to learn how to use Makie and found myself in a situation where I would like to plot some lines and a contour plot with filllrange=true (or also a heatmap) on the same scene while having the contour plot appear in front of the lines.
The contour plot does not fully overlap the lines and I would then like to have the contour “hide” the lines below it in regions where they overlap.
Here is a simplified example of what I am trying to do.
using Makie, AbstractPlotting np = 500 nc = 200 f(x) = 2*x+1 x = LinRange(-1,1,f(np)) y = rand(f(np))*2 .- 1 scene = lines(x,y) x_c = LinRange(-nc/np,nc/np,f(nc)) y_c = LinRange(-nc/np,nc/np,f(nc)) c_mat = @. x_c^2 + y_c'^2 contour!(scene,x_c,y_c,c_mat,fillrange=true)
I have been trying playing with transparency or with the plot order but I can’t find anyway to avoid the lines coming on top of the contour plot.
Is the thing I am trying to achieve even possible with Makie at the moment?