Move axis labels to top/right

Hello,
How do I move axis labels to the opposite side of my chart? I’m using tutorial code https://plot.ly/python/dendrogram/ to draw a heatmap with dendrograms, but my y-axis labels are being masked by the dendrogram itself. I’d like to specify that they instead should appear on yaxis2. My only idea so far is to shorten the width of the heatmap and move the labels using {"anchor:‘free’, position:1}

2 Likes

here’s how: http://codepen.io/etpinard/pen/GoaodV

3 Likes

well, this is embarrassing. Very straightforward and simple answer! Thanks Etienne!

No problem. Our documentation is far from perfect. You can’t blame yourself for not finding this info.

2 Likes

I am not sure how to actually do that based on the codepen link.
In python, I added “side”: “right” to update_layout(yaxis=... and it only shows line numbers and not my dataframe labels