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(