Signed-off-by: Tibor Frank <tifrank@cisco.com>
Change-Id: I1811fb1b88e6e2c2f687d2c7adb6f744740803e2
traces = list()
df = pd.DataFrame(y_vals)
df.head()
traces = list()
df = pd.DataFrame(y_vals)
df.head()
for i, col in enumerate(df.columns):
tst_name = re.sub(REGEX_NIC, "",
col.lower().replace('-ndrpdr', '').
for i, col in enumerate(df.columns):
tst_name = re.sub(REGEX_NIC, "",
col.lower().replace('-ndrpdr', '').
hoverinfo="x+y",
boxpoints="outliers",
whiskerwidth=0))
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
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
plpl = plgo.Figure(data=traces, layout=layout)
# Export Plot