aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-09-26 13:37:16 +0200
committerTibor Frank <tifrank@cisco.com>2019-09-26 13:37:16 +0200
commitc4e3e223558426378459ac9dfddfe7a6e67773f2 (patch)
treeae9318f2c232dfa30c1e8ddf823a942a9866b600 /resources/tools/presentation
parent1b95782ee3716d09f66524287dc5e93c59c133ea (diff)
Report: Reconf tests: set autorange for y axis
Change-Id: Ie1ba26d3d76a8905698d0be33e9c5e61daff0e48 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_plots.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index d43663f48c..67c8318a70 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -111,7 +111,6 @@ def plot_service_density_reconf_box_name(plot, input_data):
traces = list()
df = pd.DataFrame(y_vals)
df.head()
- y_max = list()
for i, col in enumerate(df.columns):
tst_name = re.sub(REGEX_NIC, "",
col.lower().replace('-ndrpdr', '').
@@ -131,22 +130,13 @@ def plot_service_density_reconf_box_name(plot, input_data):
hoverinfo="x+y",
boxpoints="outliers",
whiskerwidth=0))
- try:
- val_max = max(df[col])
- except ValueError as err:
- logging.error(repr(err))
- continue
- if val_max:
- y_max.append(int(val_max) + 1)
-
try:
# Create plot
layout = deepcopy(plot["layout"])
layout["title"] = "<b>Time Lost:</b> {0}".format(layout["title"])
layout["yaxis"]["title"] = "<b>Implied Time Lost [s]</b>"
layout["legend"]["font"]["size"] = 14
- if y_max:
- layout["yaxis"]["range"] = [0, max(y_max)]
+ layout["yaxis"].pop("range")
plpl = plgo.Figure(data=traces, layout=layout)
# Export Plot