X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=05f525c96af4318d8b486f4a73efebd9d0787b2e;hp=679fc3d8e178497544f14b428184f8824e519a4f;hb=ef5c30213bb28824a55f4ebbcade6410ee8d2461;hpb=53e516bc0056d3905d5c9a430506f5fc3d3975c0 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"{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"] @@ -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)