How to rotate "title" text in the axis

I have a dash application showing temperature. The “y axis” show degrees. I want the numbers to be shown normal, but the title for the axis is just “ºC” and I would love to see it horizontally instead of reading it vertically.

For longer titles this is a non issue because horizontal orientation would overlap the graph, very ugly, but for “ºC” horizontal is just fine and far prettier and easy to the eye.

Thanks!.

It’s not possible to change the rotation of the axis title. However, for units, you should try out layout.yaxis.ticksuffix combined with layout.yaxis.showtickprefix = 'first'https://plot.ly/python/reference/#layout-yaxis-ticksuffix

Cool trick, @chriddyp. In my case, I use “showticksuffix=‘last’”.

Thanks.

1 Like

Is this still the case? Is it still impossible to rotate the axis title?

1 Like