title: Plotly: What color cycle does plotly express follow?
body: <p>I would think that the default color cycle would be (some variants of) <code>['blue', 'red', 'green', 'purple', 'orange']</code> like in the plot below:</p>
  <p><strong>Plot 1:</strong></p>
  <p><a href="https://i.stack.imgur.com/bwDJK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bwDJK.png" alt="enter image description here" /></a></p>
  <p><strong>Code 1:</strong></p>
  <pre><code>import plotly
  import plotly.express as px
  
  gapminder = px.data.gapminder()
  gapminder2007=gapminder.query(&quot;year==2007&quot;)
  px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', color=&quot;continent&quot;)
  </code></pre>
  <p>At least that <em>seems</em> to be the order of the cycle since omitting <code>Oceania</code> from the continents will give you this:</p>
  <p><a href="https://i.stack.imgur.com/zggTM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zggTM.png" alt="enter image description here" /></a></p>
  <p>Now the order of the remaining colors are the same except for the last orange looking one (just showing that the application of the colors are not aribtrary).</p>
  <p>I thought this would be possible to retrieve using <code>plotly.colors.DEFAULT_PLOTLY_COLORS</code> which will give you:</p>
  <pre><code>['rgb(31, 119, 180)',
   'rgb(255, 127, 14)',
   'rgb(44, 160, 44)',
   'rgb(214, 39, 40)',
   'rgb(148, 103, 189)',
   'rgb(140, 86, 75)',
   'rgb(227, 119, 194)',
   'rgb(127, 127, 127)',
   'rgb(188, 189, 34)',
   'rgb(23, 190, 207)']
  </code></pre>
  <p>But those colors are ordered like <code>['blue', 'orange', 'green', 'red']...</code></p>
  <p>So, what color cycle <em>does</em> plotly express follow when setting for <code>color=&quot;continent&quot;</code> in <code>px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', color=&quot;continent&quot;)</code>?</p>
  <p>I tried looking under <code>help(px.colors)</code> too, but that didn't give much:</p>
  <blockquote>
  <p>Help on module plotly.express.colors in plotly.express:</p>
  <p>NAME
  plotly.express.colors</p>
  <p>DATA
  DEFAULT_PLOTLY_COLORS = ['rgb(31, 119, 180)', 'rgb(255, 127, 14)', 'rg...
  PLOTLY_SCALES = {'Blackbody': [[0, 'rgb(0,0,0)'], [0.2, 'rgb(230,0,0)'...
  absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0...</p>
  </blockquote>