✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Toggle trace by legend click - hide grid lines and axis features

Hi,
There’s a lot of rich features included in Plotly.js, including the ability to isolate or show/hide traces by clicking in the legend. I wondered if there was some setting whereby, when one hides a particular trace, or isolates a single trace, that the hidden traces’s axis tick labels, tick marks, labels and/or gridlines can also be hidden or shown along with the trace itself? This very quick method to reduce a chart to a single line is great, but if one has multiple y-axes as well, showing different things at different scales, then having the extraneous stuff displayed when one is focussing on a single trace leaves the chart very cluttered.