go.Figure(data=go.Scatter(x=[i for i in range(50)],
y=[0 for _ in range(50)],
mode='markers',
marker=dict(
color=[i for i in range(50)],
colorscale=[[0,'rgb(0,0,0)'], [1,'rgb(254.5,1.0,0)']],
showscale=True)))
This piece of code shows a colorbar with yellow at the top. Whatβs going on? It will behave well if I change the 1.0
to 0.99
or 1.01
.