Using plotly, undo move of axis title when tick labels are not shown

Executing the below code using plotly=5.16.1

import plotly.graph_objects as go

fig = go.Figure()
fig.update_layout(xaxis=dict(title="hello world"))
fig.show()

fig = go.Figure()
fig.update_layout(xaxis=dict(title="hello world", showticklabels=False))
fig.show()

results in enter image description here
and enter image description here

Is this a bug or a feature?
How to only remove the tick labels, but not move the axis title from bottom to top?

  • This event may not yet be resolved. Please refer to this response.

    – 

Leave a Comment