marker=dict(size=12, color=colors[cage_index], opacity=0.8), line=dict(color='black'), showlegend=False code example
Example: change marker border color plotly
#Works for plotly graph_objects and plotly express
fig.update_traces(marker_line_color('rgb(0, 2, 1)'))