Open chrissimpkins opened 5 years ago
Colorscale can be set with the colorscale property using RGBA format that is pulled directly from glyph highlight color scheme or mapped to a different RGBA scheme from that color scheme:
colorscale (colorscale) Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]
. To control the bounds of the colorscale in color space, usezmin
andzmax
. Alternatively,colorscale
may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis
Source: https://plot.ly/~chrissimpkins/3/
Documentation: https://plot.ly/python/reference/#heatmap
Image
Example Python source with Plotly library: