title: Plotly: How to get the trace color attribute in order to plot selected marker with same color?
body: <p>I am trying to plot a selected marker for each of my traces in plotly. I would like to assign the same color to marker and line. Is there a way how to get the color attribute of my traces?</p>
  
  <pre><code>fig = go.Figure()
  
  fig.add_trace(go.Scatter(
      x=[0, 1, 2, 3, 4, 5],
      y=[0, 3, 5, 7, 9, 11],
      name='trace01',
      mode='lines+markers',
      marker=dict(size=[0, 0, 30, 0, 0, 0],
              color=[0, 0, 10, 0, 0, 0])
  ))
  fig.add_trace(go.Scatter(
      x=[0, 1, 2, 3, 4, 5],
      y=[3, 5, 7, 9, 11, 13],
      name='trace02',
      mode='lines+markers',
      marker=dict(size=[0, 0, 0, 30, 0, 0],
              color=[0, 0, 0, 10, 0, 0])
  ))
  fig.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Md8m0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Md8m0.png" alt="enter image description here"></a></p>