Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Report: Add RC1 data
[csit.git]
/
resources
/
tools
/
presentation
/
generator_plots.py
diff --git
a/resources/tools/presentation/generator_plots.py
b/resources/tools/presentation/generator_plots.py
index
d2cc9c0
..
ba10ea6
100644
(file)
--- a/
resources/tools/presentation/generator_plots.py
+++ b/
resources/tools/presentation/generator_plots.py
@@
-104,7
+104,7
@@
def plot_lat_hdrh_percentile(plot, input_data):
# 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():
@@
-116,8
+116,7
@@
def plot_lat_hdrh_percentile(plot, input_data):
continue
name = re.sub(REGEX_NIC, u"", test[u"parent"].
replace(u'-ndrpdr', u'').
continue
name = re.sub(REGEX_NIC, u"", test[u"parent"].
replace(u'-ndrpdr', u'').
- replace(u'2n1l-', u'').
- replace(u'avf-', u''))
+ replace(u'2n1l-', u''))
for idx, direction in enumerate(
(u"direction1", u"direction2", )):
try:
for idx, direction in enumerate(
(u"direction1", u"direction2", )):
try:
@@
-144,8
+143,13
@@
def plot_lat_hdrh_percentile(plot, input_data):
plgo.Scatter(
x=xaxis,
y=yaxis,
plgo.Scatter(
x=xaxis,
y=yaxis,
- name=
f"{name} ({directions[idx]})"
,
+ name=
name
,
mode=u"lines",
mode=u"lines",
+ legendgroup=name,
+ showlegend=bool(idx),
+ line=dict(
+ color=COLORS[color]
+ ),
hovertext=hovertext,
hoverinfo=u"text"
)
hovertext=hovertext,
hoverinfo=u"text"
)