Closed Proyag closed 2 years ago
Indexing into a hardcoded list of colors for bar charts causes an IndexError when the number of systems being compared is greater than the number of colors in bar_colors. https://github.com/neulab/compare-mt/blob/a0482d7a3ddac64ef51c3c92a0c86919c63f670b/compare_mt/reporters.py#L81-L92
bar_colors
I think the right way to handle this is to use matplotlib's rcParams to customize the color cycle instead.
rcParams
This does result in duplicate colors in the legend when there are >8 systems, but that's probably better than crashing.
Awesome, thanks!
Indexing into a hardcoded list of colors for bar charts causes an IndexError when the number of systems being compared is greater than the number of colors in
bar_colors
. https://github.com/neulab/compare-mt/blob/a0482d7a3ddac64ef51c3c92a0c86919c63f670b/compare_mt/reporters.py#L81-L92I think the right way to handle this is to use matplotlib's
rcParams
to customize the color cycle instead.This does result in duplicate colors in the legend when there are >8 systems, but that's probably better than crashing.