diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-01-16 13:31:08 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-01-16 13:31:08 +0100 |
commit | e8e433bca76e6b7b065637d54cba9069278f6ab3 (patch) | |
tree | 2877b0d46a518da41e15576244c93d3765cec4a7 /resources/tools | |
parent | b41156890e8871e8f9cd1f57cca7a6fe9ef3f3fa (diff) |
Report: Latency by Percentile Distribution
- legend
Change-Id: I35477ce5c2cabfdcef68424854a8574bd3655e55
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/generator_plots.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index d2cc9c0c5e..4411ac8a64 100644 --- 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"] - 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(): @@ -144,8 +144,13 @@ def plot_lat_hdrh_percentile(plot, input_data): plgo.Scatter( x=xaxis, y=yaxis, - name=f"{name} ({directions[idx]})", + name=name, mode=u"lines", + legendgroup=name, + showlegend=bool(idx), + line=dict( + color=COLORS[color] + ), hovertext=hovertext, hoverinfo=u"text" ) |