diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-09-26 12:48:38 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-09-26 12:50:48 +0200 |
commit | 549ab4740d22aa6bfa10071632322077db5e4c9a (patch) | |
tree | 81f8e0d8255a1db17f7df24ab00d53f1ea5a516b /resources | |
parent | 36e0d7be077c16d85f9d7f702cc5df32e8dc3bd5 (diff) |
Report: Reconf tests: set autorange for y axis
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Change-Id: I1811fb1b88e6e2c2f687d2c7adb6f744740803e2
Diffstat (limited to 'resources')
-rw-r--r-- | resources/tools/presentation/generator_plots.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 3e5da63c9e..a628d3f154 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', ''). @@ -132,22 +131,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 |