Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

How to specify color for each point in heatmap

Hi

I want to match an image to a heatmap.

msrresult

I match the pixel values of the image in the heatmap, the output is as follows.

plotly

I do not know how colorscale works.

Is there a way to set colorscale like the color of an image?

Any feedback appreciated

regards.

https://plot.ly/javascript/reference/#heatmap-colorscale is a good place to start.

Not at the moment unfortunately. See https://github.com/plotly/plotly.js/issues/1827