Plotly HeatMap ColorScale

I was wondering if it was possible to base the colorscale/colors of the heatmap z values based on a defined legend/ values instead of using the percentile method?

I’m interested in doing this as well.