Skip to content

Commit

Permalink
Merge pull request optuna#5107 from eukaryo/contour-infeasible-visiblity
Browse files Browse the repository at this point in the history
Improve visiblity of infeasible trials in `plot_contour`
  • Loading branch information
Alnusjaponica committed Nov 16, 2023
2 parents ce4ad23 + b499864 commit 17b5115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optuna/visualization/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _get_contour_subplot(


def _create_scatter(x: list[Any], y: list[Any], is_feasible: bool) -> Scatter:
edge_color = "Gray" if is_feasible else "#cccccc"
edge_color = "Gray"
marker_color = "black" if is_feasible else "#cccccc"
name = "Feasible Trial" if is_feasible else "Infeasible Trial"
return go.Scatter(
Expand Down
2 changes: 1 addition & 1 deletion optuna/visualization/matplotlib/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _generate_contour_subplot(info: _SubContourInfo, ax: "Axes", cmap: "Colormap
marker="o",
c="#cccccc",
s=20,
edgecolors="#cccccc",
edgecolors="grey",
linewidth=2.0,
)

Expand Down

0 comments on commit 17b5115

Please sign in to comment.