aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-01-14 07:38:16 +0100
committerTibor Frank <tifrank@cisco.com>2021-01-14 07:41:15 +0100
commitef5c30213bb28824a55f4ebbcade6410ee8d2461 (patch)
treedb97da41d7b8f6fb1887a90f6798b7923628db93 /resources/tools/presentation/generator_plots.py
parent53e516bc0056d3905d5c9a430506f5fc3d3975c0 (diff)
Report: Add data
Change-Id: I3ac0e892ef3f2b0a23b42465565d28f5d5027dae Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_plots.py')
-rw-r--r--resources/tools/presentation/generator_plots.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 679fc3d8e1..05f525c96a 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -173,14 +173,9 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
for color, graph in enumerate(graphs):
for idx, direction in enumerate((u"direction1", u"direction2")):
- xaxis = [0.0, ]
- yaxis = [0.0, ]
- hovertext = [
- f"<b>{desc[graph]}</b><br>"
- f"Direction: {(u'W-E', u'E-W')[idx % 2]}<br>"
- f"Percentile: 0.0%<br>"
- f"Latency: 0.0uSec"
- ]
+ xaxis = list()
+ yaxis = list()
+ hovertext = list()
try:
decoded = hdrh.histogram.HdrHistogram.decode(
test[u"latency"][graph][direction][u"hdrh"]
@@ -193,7 +188,7 @@ def plot_hdrh_lat_by_percentile(plot, input_data):
for item in decoded.get_recorded_iterator():
percentile = item.percentile_level_iterated_to
- if percentile > 99.9:
+ if percentile > 99.9999999:
continue
xaxis.append(percentile)
yaxis.append(item.value_iterated_to)