title: (Python) Plotly Scatter - Specify Line Color with Integer Value
body: <p>Plotly allows a user to specify a color of a marker scatter plot based on an integer value e.g.:</p>
  
  <pre><code>go.Scatter(x=x,
             y=y,
             mode='markers',
             marker=dict(color=i))
  </code></pre>
  
  <p>where i is an integer. However, if I want to specify the color of a line, neither of the following work:</p>
  
  <pre><code>go.Scatter(x=x,
             y=y,
             mode='lines',
             marker=dict(color=i))
  
  go.Scatter(x=x,
             y=y,
             mode='lines',
             line=dict(color=i))
  </code></pre>
  
  <p>How do I specify the color of a Plotly line using an integer?</p>