Skip to content

Commit dcb1b4c

Browse files
authored
Update plot colors to be colorblind compatible (#807)
* Update plot colors to be colorblind compatible * add website link
1 parent 19f69e4 commit dcb1b4c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

model_analyzer/plots/detailed_plot.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ def __init__(self, name, title, bar_width=0.5):
7272
)
7373
]
7474

75+
# Okabe-Ito guideline colors for colorblind
76+
# https://jfly.uni-koeln.de/color/#select
7577
self._bar_colors = {
76-
"perf_server_queue": "#9daecc",
77-
"perf_server_compute_input": "#7eb7e8",
78-
"perf_server_compute_infer": "#0072ce",
79-
"perf_server_compute_output": "#254b87",
80-
"perf_throughput": "#5E5E5E",
78+
"perf_server_queue": "#e69f00",
79+
"perf_server_compute_input": "#56b4e9",
80+
"perf_server_compute_infer": "#009e73",
81+
"perf_server_compute_output": "#f0e442",
82+
"perf_throughput": "#000000",
8183
}
8284

8385
self._bar_width = bar_width

0 commit comments

Comments
 (0)