I am trying to get a custom color scale for the heatmap that I am going to generate for the data similar to below one:
df=pd.DataFrame({"x": [1,2,3,4,5,6,7],"y": [1,2,3,4,5,6,7], "res":[0,5,5,10,5,15,20]})
The color condition would be:
Grey: for res <= 0, Yellow: for res >0, Orange: for res >5, Red: for res >10 etc.
I have tried seaborn heatmap but not able to set the conditioned custom color scale. Any clue would be greatly appreciated. Thanks!