From ffb47ffbebaef1d54d177bc339a108a7003357f8 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 17 May 2021 17:47:30 +0200 Subject: [PATCH] Silent Patches Bug Fix (#3214) --- utils/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/plots.py b/utils/plots.py index 22ccdcee8a21..ade9322ce4ec 100644 --- a/utils/plots.py +++ b/utils/plots.py @@ -300,7 +300,7 @@ def plot_labels(labels, names=(), save_dir=Path(''), loggers=None): matplotlib.use('svg') # faster ax = plt.subplots(2, 2, figsize=(8, 8), tight_layout=True)[1].ravel() y = ax[0].hist(c, bins=np.linspace(0, nc, nc + 1) - 0.5, rwidth=0.8) - [y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors + # [y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors bug #3195 ax[0].set_ylabel('instances') if 0 < len(names) < 30: ax[0].set_xticks(range(len(names)))