From b41156890e8871e8f9cd1f57cca7a6fe9ef3f3fa Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Thu, 16 Jan 2020 10:53:35 +0100 Subject: [PATCH] Report: Latency by Percentile Distribution - Set X-axis Change-Id: Ica300c7b1352c824bf51ac26e7485c9295ac60dc Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 4 ++-- resources/tools/presentation/specification.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 8af9a945d1..d2cc9c0c5e 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -137,14 +137,14 @@ def plot_lat_hdrh_percentile(plot, input_data): hovertext.append( f"Test: {name}
" f"Direction: {directions[idx]}
" - f"Percentile: {percentile:.5f}
%" + f"Percentile: {percentile:.5f}%
" 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" diff --git a/resources/tools/presentation/specification.yaml b/resources/tools/presentation/specification.yaml index 1ea3c55427..a642c75bf9 100644 --- a/resources/tools/presentation/specification.yaml +++ b/resources/tools/presentation/specification.yaml @@ -1712,8 +1712,8 @@ 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: @@ -1739,7 +1739,7 @@ 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 -- 2.16.6