Is it possible to ignore colouring the marker ( line )

I have a dictionary to give color to marker .
Is it possible to ignore color of marker ( note i dont want to filter records )

e.g a dictionary as

marker=dict(size=33,line=dict(width=2),color=show_decision_frame[‘buffer’].map({-2:‘red’,-1:‘red’,0:‘white’,1:‘green’,2:‘green’})),

to

marker=dict(size=33,line=dict(width=2),color=show_decision_frame[‘buffer’].map({-2:‘red’,-1:‘red’,0:‘nocolor’,1:‘green’,2:‘green’})),

my sole objective to get attention of all other colors with non zero values …

What do you mean by “nocolor”? If you don’t want it to be visible, you could use a RGB string like 'rgba(0,0,0,0)' to hide the marker.

Example:

import plotly.graph_objects as go

trace = go.Scatter(x=[1,2,3], y=[1,2,3], marker={'color': ['rgba(0,0,0,0)', 'red', 'green'], 'size': 10})
fig = go.Figure(data=trace)
fig.show()

which produces:

1 Like

my idea is to use it like a switch on graphs ; which may become visble in next interval callback or on some condition .
Your suggestion might help (will try that )