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 âŚ
AIMPED
October 13, 2022, 7:14pm
2
yogi_dhiman:
nocolor
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 )