From 322e85830893990d21fb364eed77964d28339c74 Mon Sep 17 00:00:00 2001 From: JanOpper <56171714+JanOpper@users.noreply.github.com> Date: Thu, 20 May 2021 22:39:07 +0200 Subject: [PATCH] Fix invisible colors in boxplot legend --- src/rpg_trajectory_evaluation/plot_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpg_trajectory_evaluation/plot_utils.py b/src/rpg_trajectory_evaluation/plot_utils.py index 146dda4af..cb572010f 100644 --- a/src/rpg_trajectory_evaluation/plot_utils.py +++ b/src/rpg_trajectory_evaluation/plot_utils.py @@ -42,7 +42,7 @@ def boxplot_compare(ax, xlabels, # print("Positions: {0}".format(positions)) bp = ax.boxplot(d, 0, '', positions=positions, widths=widths) color_box(bp, data_colors[idx]) - tmp, = plt.plot([1, 1], c=data_colors[idx], alpha=0) + tmp, = plt.plot([1, 1], c=data_colors[idx], alpha=1.0) leg_handles.append(tmp) leg_labels.append(data_labels[idx]) idx += 1