GLMakie: how to plot two images with transparency?

I’m using GLMakie to display 2 images.
GLMakie.image(GLMakie.rotr90(image_data))
GLMakie.image!(GLMakie.rotr90(some_extra_data), colormap=“viridis”)

This code will display “some_extra_data” and the “image_data” is no longer visible.
How can I set a transparency value for “some_extra_data”?

Just do colormap=(“viridis”,0.5), that will give you a transparent colormap.

It works thanks :slight_smile: . I have the feeling that the Makie documentation shall be improved. The solution is so simple and I was unable to find it via documentation.

You can always make a docs PR if something is missing

1 Like