I have a problem with Ploty library in Python. When I draw a map with Plotly, it only returns “one-color map” because of its “scale” feature. But I want a map like . This map has only 3 colors and there are no gradients. I tried to scale values from red to blue or vice versa. But it didn’t make any progress. Is there a way to draw a map with only three colors?
Plotly computes colors from numeric color arrays using colorscales. It looks like you’ll want to define a custom color scale that use these three colors. There are some examples of custom colorscales at https://plot.ly/python/colorscales/.
Hope that helps!
If you have any followup questions, please include a minimal code example that produces the plot above. Thanks!