title: Plotly: How to set up a color palette for a figure created with multiple traces?
body: <p>I using code below to generate chart with multiple traces.
  However the only way that i know to apply different colours for each trace is using a randon function that ger a numerico RGB for color.</p>
  <p>But random color are not good to presentations.</p>
  <p>How can i use a pallet colour for code below and dont get more random colors?</p>
  <pre><code>groups53 = dfagingmedioporarea.groupby(by='Area')
  
  
  data53 = []
  colors53=get_colors(50)
  
  for group53, dataframe53 in groups53:
      dataframe53 = dataframe53.sort_values(by=['Aging_days'], ascending=False)
      trace53 = go.Bar(x=dataframe53.Area.tolist(), 
                          y=dataframe53.Aging_days.tolist(),
                          marker  = dict(color=colors53[len(data53)]),
                          name=group53,
                          text=dataframe53.Aging_days.tolist(),
                          textposition='auto',
                          
  
                          )
  
  
      data53.append(trace53)
  
      layout53 =  go.Layout(xaxis={'title': 'Area', 'categoryorder': 'total descending', 'showgrid': False},
                          
                          yaxis={'title': 'Dias', 'showgrid': False},
                          margin={'l': 40, 'b': 40, 't': 50, 'r': 50},
                          hovermode='closest',
                          template='plotly_white',
                       
  
                          title={
                                  'text': &quot;Aging Médio (Dias)&quot;,
                                  'y':.9,
                                  'x':0.5,
                                  'xanchor': 'center',
                                  'yanchor': 'top'})
                          
  
      
  
  figure53 = go.Figure(data=data53, layout=layout53)
  </code></pre>