title: how to convert continuous colorscale into discrete colorscale?
body: <p>I'd like to use two colors red and blue but with different concentration like below.
  I'd like to convert this continuous color scale into discreate color scale with 10 discreate colors.</p>
  <p><a href="https://plotly.com/python/colorscales/#reversing-a-builtin-color-scale" rel="nofollow noreferrer">https://plotly.com/python/colorscales/#reversing-a-builtin-color-scale</a></p>
  <p>If I print the continuous colorscale, it has only 2 element in the list like below. Now How can I get 10 discreate colors between red and blue with different concentrations.  Thanks</p>
  <pre><code>    colors=px.colors.sequential.Bluered_r
      
      print(colors)
  
      ['rgb(255,0,0)', 'rgb(0,0,255)']
  
  </code></pre>