plotly / dash-bio

Open-source bioinformatics components for Dash
https://dash-gallery.plotly.host/Portal/?search=Bioinformatics
MIT License
531 stars 192 forks source link

Put heatmap tick labels on left and dendrogram lines on left when using clustergram #650

Open dpdoughe opened 2 years ago

dpdoughe commented 2 years ago

I'm using clustergram from dash_bio, but my labels are on the long side and colliding with the colorbar. I'd like to put the y tick labels of the heatmap on the left axis instead of the right axis (default?) and move the dendrogram lines currently on the left to appear on the right. This should reduce the collision with the colorbar and dendrogram with these long labels.

Note: I have played with just moving the colorbar to the left by

clustergram_fig.data[-1].colorbar.x = -2.0

But the issue there is that the tick labels of the colorbar then collide with the dendrogram.

Any ideas on what incantation I can use in dash_bio to put the y tick labels of the heatmap on the left axis instead of the right axis and move the dendrogram lines currently on the left to appear on the right?