aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-02-04 14:19:00 +0100
committerTibor Frank <tifrank@cisco.com>2021-02-04 13:39:52 +0000
commit2f32974a55dba86983e45c1bf7fb5d471f92790e (patch)
tree0beb80e8c40edd50020391114bd7fa34cb245937 /resources
parent4605d68837858db10aab8cb8de7f0d52fc20dcfc (diff)
Report: Set the range of x-axis fro Latency graphs
Change-Id: I2807dc920805c8a59a97ddbd92ad17e4372826db Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 879b31f02fb4df52016d7465e21377121dfbb515)
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_plots.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 650a51c5a7..88af4a4665 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -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