X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=05f525c96af4318d8b486f4a73efebd9d0787b2e;hb=refs%2Fchanges%2F57%2F30757%2F2;hp=815f45884f8e6c90b05de9aea5f5237f546591ab;hpb=98a94315dae63bd19c7bc16ce50b3219386aa34c;p=csit.git
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 815f45884f..05f525c96a 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -77,7 +77,8 @@ def generate_plots(spec, data):
u"plot_tsa_name": plot_tsa_name,
u"plot_http_server_perf_box": plot_http_server_perf_box,
u"plot_nf_heatmap": plot_nf_heatmap,
- u"plot_hdrh_lat_by_percentile": plot_hdrh_lat_by_percentile
+ u"plot_hdrh_lat_by_percentile": plot_hdrh_lat_by_percentile,
+ u"plot_hdrh_lat_by_percentile_x_log": plot_hdrh_lat_by_percentile_x_log
}
logging.info(u"Generating the plots ...")
@@ -172,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"{desc[graph]}
"
- f"Direction: {(u'W-E', u'E-W')[idx % 2]}
"
- f"Percentile: 0.0%
"
- f"Latency: 0.0uSec"
- ]
+ xaxis = list()
+ yaxis = list()
+ hovertext = list()
try:
decoded = hdrh.histogram.HdrHistogram.decode(
test[u"latency"][graph][direction][u"hdrh"]
@@ -192,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)