- legend
Change-Id: I35477ce5c2cabfdcef68424854a8574bd3655e55
Signed-off-by: Tibor Frank <tifrank@cisco.com>
# Prepare the data for the plot
directions = [u"W-E", u"E-W"]
# Prepare the data for the plot
directions = [u"W-E", u"E-W"]
- for test in data[0][0]:
+ for color, test in enumerate(data[0][0]):
try:
if test[u"type"] in (u"NDRPDR",):
if u"-pdr" in plot_title.lower():
try:
if test[u"type"] in (u"NDRPDR",):
if u"-pdr" in plot_title.lower():
plgo.Scatter(
x=xaxis,
y=yaxis,
plgo.Scatter(
x=xaxis,
y=yaxis,
- name=f"{name} ({directions[idx]})",
+ legendgroup=name,
+ showlegend=bool(idx),
+ line=dict(
+ color=COLORS[color]
+ ),
hovertext=hovertext,
hoverinfo=u"text"
)
hovertext=hovertext,
hoverinfo=u"text"
)