I'm plotting a heatmap with holoviews using the Plotly backend.
import holoviews as hv
hv.HeatMap([(0,0,-10),(0,1,-9),(1,0,0),(1,1,2)]).opts(cmap="RdBu")
I'd like to set the colormap midpoint to 0 to make the diverging colormap meaningful. In plotly I would do color_continuous_midpoint=0
for the px.imshow
function of plotly express.
How can I set the colormap midpoint in holoviews?
Does Holoviews use px.imshow
? If so, is there a way to pass through this (or any) raw parameters? How can I find the solution in the documentation of Holoviews? I tried, but failed to find a hint.