I’m trying to draw transparent surfaces in Makie to illustrate separation boundaries between clusters. However, I can’t seem to get the surface function to respect the color argument. It seems to use the default colormap to map the z-values instead. This illustrates what I’m trying to do.
using AbstractPlotting, GLMakie
fig = Figure(resolution=(300,300))
lscene = LScene(fig[1,1], scenekw = (camera=cam3d!, raw=false))
x = range(-1.0, stop=1.0, length=100)
y = range(-1.0, stop=1.0, length=100)
f(x,y) = (r = x*x + y*y; exp(-r*r/2))
surface!(lscene, x, y, f, color=(:red, 0.5), shading=false, transparency=true)
fig