From 6fd00a76de6f1a0c0d25b853ab081c2c3eef3eb3 Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Mon, 13 Sep 2021 17:55:09 -0400 Subject: [PATCH] Fix grouping of plots in legend Signed-off-by: Fabrice Normandin --- src/orion/plotting/backend_plotly.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/orion/plotting/backend_plotly.py b/src/orion/plotting/backend_plotly.py index b056dd765..5971e1196 100644 --- a/src/orion/plotting/backend_plotly.py +++ b/src/orion/plotting/backend_plotly.py @@ -633,6 +633,7 @@ def get_objective_name(experiments): mode="lines", line=dict(color=px.colors.qualitative.G10[i]), name=name, + legendgroup=name, ) if "best_var" in exp_data: dy = numpy.sqrt(exp_data["best_var"]) @@ -643,6 +644,7 @@ def get_objective_name(experiments): showlegend=False, line=dict(color=px.colors.qualitative.G10[i]), name=name, + legendgroup=name, ) fig.update_layout(