Skip to content

Commit

Permalink
Merge pull request #662 from lebrice/fix_plotting_groups
Browse files Browse the repository at this point in the history
Fix grouping of plots in legend
  • Loading branch information
bouthilx authored Sep 14, 2021
2 parents 10383b2 + 6fd00a7 commit 0683944
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/orion/plotting/backend_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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(
Expand Down

0 comments on commit 0683944

Please sign in to comment.