Question : plotly remove labels
Answered by : kiril-klein
# Option-1: using fig.update_yaxes()
fig.update_yaxes(visible=False, showticklabels=False)
# Option-2: using fig.update_layout()
fig.update_layout(yaxis={'visible': False, 'showticklabels': False})
# Option-3: using fig.update_layout() + dict-flattening shorthand
fig.update_layout(yaxis_visible=False, yaxis_showticklabels=False)
Source : https://stackoverflow.com/questions/61693014/how-to-hide-plotly-yaxis-title-in-python | Last Update : Sun, 11 Sep 22