Report: Latency by Percentile Distribution 67/24367/1
authorTibor Frank <tifrank@cisco.com>
Thu, 16 Jan 2020 09:53:35 +0000 (10:53 +0100)
committerTibor Frank <tifrank@cisco.com>
Thu, 16 Jan 2020 09:53:35 +0000 (10:53 +0100)
- Set X-axis

Change-Id: Ica300c7b1352c824bf51ac26e7485c9295ac60dc
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py
resources/tools/presentation/specification.yaml

index 8af9a94..d2cc9c0 100644 (file)
@@ -137,14 +137,14 @@ def plot_lat_hdrh_percentile(plot, input_data):
                                 hovertext.append(
                                     f"Test: {name}<br>"
                                     f"Direction: {directions[idx]}<br>"
-                                    f"Percentile: {percentile:.5f}<br>%"
+                                    f"Percentile: {percentile:.5f}%<br>"
                                     f"Latency: {item.value_iterated_to}uSec"
                                 )
                         fig.add_trace(
                             plgo.Scatter(
                                 x=xaxis,
                                 y=yaxis,
-                                name=name,
+                                name=f"{name} ({directions[idx]})",
                                 mode=u"lines",
                                 hovertext=hovertext,
                                 hoverinfo=u"text"
index 1ea3c55..a642c75 100644 (file)
         showline: True
         showticklabels: True
         tickcolor: "rgb(220, 220, 220)"
-        tickvals: [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8]
-        ticktext: [0, 90.0, 99.0, 99.9, 99.99, 99.999, 99.9999, 99.99999, 99.999999]
+        tickvals: [1, 2, 1e1, 20, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8]
+        ticktext: [0, 50, 90, 95, 99, 99.9, 99.99, 99.999, 99.9999, 99.99999, 99.999999]
         tickfont:
           size: 16
       yaxis:
         xanchor: "left"
         yanchor: "top"
         x: 0
-        y: -0.1
+        y: -0.15
         bgcolor: "rgba(255, 255, 255, 0)"
         bordercolor: "rgba(255, 255, 255, 0)"
       width: 700