To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit f6d157ce authored by Zixian Cai's avatar Zixian Cai
Browse files

Add color to distinguish boxplots

parent f016dd9c
......@@ -134,6 +134,12 @@ class BoxplotPipeline(Pipeline):
vectors.append(x[1].t_proc.raw)
labels.append("\n".join(x[1].callback.name.split()))
labels.append("\n".join(x[1].t_proc.name.split()))
plt.boxplot(vectors, labels=labels)
bplot = plt.boxplot(vectors, labels=labels, patch_artist=True)
boxes = bplot["boxes"]
for idx_box, box in enumerate(boxes):
if idx_box % 2 == 0:
box.set_facecolor("r")
else:
box.set_facecolor("y")
plt.show()
return report
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment