title: plotly multiple axes that change dynamically with plot
body: <p>So consider the following plot with multiple y-axes (taken from here <a href="https://plotly.com/python/multiple-axes/" rel="nofollow noreferrer">link</a>)</p>
  <pre><code>import plotly.graph_objects as go
  from plotly.subplots import make_subplots
  
  # Create figure with secondary y-axis
  fig = make_subplots(specs=[[{&quot;secondary_y&quot;: True}]])
  
  # Add traces
  fig.add_trace(
      go.Scatter(x=[1, 2, 3], y=[40, 50, 60], name=&quot;yaxis data&quot;),
      secondary_y=False,
  )
  
  fig.add_trace(
      go.Scatter(x=[2, 3, 4], y=[4, 5, 6], name=&quot;yaxis2 data&quot;),
      secondary_y=True,
  )
  
  # Add figure title
  fig.update_layout(
      title_text=&quot;Double Y Axis Example&quot;
  )
  
  # Set x-axis title
  fig.update_xaxes(title_text=&quot;xaxis title&quot;)
  
  # Set y-axes titles
  fig.update_yaxes(title_text=&quot;&lt;b&gt;primary&lt;/b&gt; yaxis title&quot;, secondary_y=False)
  fig.update_yaxes(title_text=&quot;&lt;b&gt;secondary&lt;/b&gt; yaxis title&quot;, secondary_y=True)
  
  fig.show()
  
  </code></pre>
  <p>Is there anyway to get the axes to 'hide' and 'un-hide' as we click and unclick 'yaxis data' and 'yaxis2 data'? I need to construct a plot with more than 2 y-axes, and I would like the axes to 'hide' and 'unhide' as the user clicks the respective curve. Thanks for any help/guidance.</p>