Unexpected changes to RdBu colorscale after update

Hi all,

I just updated plotly to 4.1.1 after I was using 3.0.0 before. I notice some weird changes to the RdBu colorscale, which seems now identical to the Bluered scale? The colors have been flipped…

Example of how it was in 3.0.0:

And now, with same data, in 4.1.1:

Am I missing something? My code is as below:

go.Scatter(x=xcoords,
                      y=ycoords,
                      mode='markers',
                      showlegend=False,
                      marker=dict(size=4,
                                  color=values,
                                  cmin=minvalue,
                                  cmax=maxvalue,
                                  colorscale='RdBu',
                                  showscale=False))

@wdecoster Yes, the RdBu colorscale was redefined in Plotly 4.0.0.

This is before 4.0.0:

RdBu-PLotly-before-4

and this one, after:

RdBu-4-1-0

Thanks! Guess I’ll have to make my own colorscale then.

@wdecoster This is the former RdBu colorscale:

RdBu= [[0, 'rgb(5,10,172)'], 
       [0.35, 'rgb(106,137,247)'],
       [0.5, 'rgb(190,190,190)'], 
       [0.6, 'rgb(220,170,132)'],
       [0.7, 'rgb(230,145,90)'], 
       [1, 'rgb(178,10,28)']]
```    ]

That’s very helpful, thanks!