Skip to content

Commit 458815e

Browse files
committed
Fixes a bug on a colormap
1 parent ff218d9 commit 458815e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/hdbo_benchmark/utils/visualization/constants.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22

3+
import numpy as np
34
from matplotlib.colors import LinearSegmentedColormap
45

56
SQUARE_FIG_SIZE = (8, 8)
@@ -9,9 +10,11 @@
910
FIGURE_PATH = ROOT_DIR / "reports" / "figures"
1011
FIGURE_PATH.mkdir(exist_ok=True, parents=True)
1112

12-
COLORS_FOR_BINARY_MAPS = (
13-
(198 / 255, 210 / 255, 210 / 255, 1.0),
14-
(69 / 255, 71 / 255, 74 / 255, 1.0),
13+
COLORS_FOR_BINARY_MAPS = np.array(
14+
[
15+
[198 / 255, 210 / 255, 210 / 255, 1.0],
16+
[69 / 255, 71 / 255, 74 / 255, 1.0],
17+
]
1518
)
1619
CMAP_BINARY = LinearSegmentedColormap.from_list(
1720
"Custom", COLORS_FOR_BINARY_MAPS, len(COLORS_FOR_BINARY_MAPS)

0 commit comments

Comments
 (0)