Hi, I’m trying out Clustergram from dash_bio, and have a few questions:
-
Displaying value. When using heatmap (
px.imshow
), I could usetext_auto=True
to display the value. Is it possible to do similar with Clustergram?
Values shown when usingpx.imshow
Nothing shown using Clustergram
-
How do I adjust the colorscale/color bar’s position, I want it to be placed closer to the heatmap, because I find the gap too big. I tried
fig_heatmap.update_layout(coloraxis_colorbar_x=-0.1)
but this does not seem to work.
-
Finally, is it possible to customize the hover? I want to remove the “trace 8” when hovering on the heatmap.
When hovering on the dendrogram, I would like to keep the “trace” info and remove the value.
I tried setting'<extra></extra>'
for thehover_template
, but that removes the cluster info when hovering the dendrogram.
Are one or some of these customizations possible? Any pointers would be helpful!