You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the visibility of an y-axis to false with Plotly.update does not clear the axis title from the graph. The axis itself (ticks, numbers, etc.) is removed.
The following jsfiddle (https://jsfiddle.net/tf6urjuq/) shows the issue. It's a modification of the "multiple y-axes example", with only 2 traces. The last two lines hide the second y-axis:
Actually that's a good question: should a hidden axis display the title or not? I'd tend to say yes since hiding the lines and showing the title seems like a valid thing to do. Then to hide the title, you just unset it.
Ah yes. Apologies. I meant it's unclear to me that visibility should affect the title at all. Right now it does and right now it's buggy. The part I was thinking through out loud is how best to fix it. It's definitely buggy though. 👍🏼
Changing the visibility of an y-axis to false with Plotly.update does not clear the axis title from the graph. The axis itself (ticks, numbers, etc.) is removed.
The following jsfiddle (https://jsfiddle.net/tf6urjuq/) shows the issue. It's a modification of the "multiple y-axes example", with only 2 traces. The last two lines hide the second y-axis:
But the text "yaxis2 title" is still visible.
Interestingly, when the axis is re-enabled with a different position, the title is moved to the new position.
The text was updated successfully, but these errors were encountered: