Report: Set the range of x-axis fro Latency graphs 17/31117/1
authorTibor Frank <tifrank@cisco.com>
Thu, 4 Feb 2021 13:19:00 +0000 (14:19 +0100)
committerTibor Frank <tifrank@cisco.com>
Thu, 4 Feb 2021 13:19:00 +0000 (14:19 +0100)
Change-Id: I2807dc920805c8a59a97ddbd92ad17e4372826db
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py

index 650a51c..88af4a4 100644 (file)
@@ -62,7 +62,7 @@ COLORS = (
 REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*[a-z]*)-')
 
 # This value depends on latency stream rate (9001 pps) and duration (5s).
-PERCENTILE_MAX = 99.9999
+PERCENTILE_MAX = 99.9995
 
 
 def generate_plots(spec, data):
@@ -398,9 +398,10 @@ def plot_hdrh_lat_by_percentile_x_log(plot, input_data):
                     )
 
             layout[u"title"][u"text"] = f"<b>Latency:</b> {name}"
-            layout[u"xaxis"][u"range"] = [
-                0, round(log(100.0 / (100.0 - PERCENTILE_MAX), 10))
-            ]
+            layout[u"xaxis"][u"range"] = [0, 5]
+            # layout[u"xaxis"][u"range"] = [
+            #     0, round(log(100.0 / (100.0 - PERCENTILE_MAX), 10))
+            # ]
             fig.update_layout(layout)
 
             # Create plot