I want to use plotly’s heat map to emphasize a certain range of data, for example: in the figure below, I want to display the value range of yellow as 146-317, or display yellow when the value range is 146-317, what should I do?
Hi @jumbo
歡迎來到社區,感謝您的提問。
welcome to the community and thank you for your question.
I don’t think you can be so specific about where yellow starts and ends (146-317), especially because your using continuous color scales. However, trying adding this parameter to your figure. Maybe that will get you close. Note that the integers inside the list have to be from 0 to 1.
If you want to use colors from an available color continuous scale see also the function get_color_for_val I defined in this thread: Hover background color on scatter 3d