Skip to content
Advertisement

Plot a Seaborn heatmap over a background picture

I have a following problem. I would like to plot my heatmap over an image. See my simplified code below:

JavaScript

What is the problem here? Is it because the color for 0 values in my heatmap is black?

I tried to follow answer here, but it did not work to me: Plotting seaborn heatmap on top of a background picture

Advertisement

Answer

You can use mpl.image in the answer you are referring to to overlay the image. You need to make sure to specify the transparency of the heatmap.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement