From f4ff84d50ca27abbb33af11e10d3a824a4293b0e Mon Sep 17 00:00:00 2001
From: Amir Mohammadi <amir.mohammadi@idiap.ch>
Date: Fri, 2 Dec 2016 15:30:04 +0100
Subject: [PATCH] Fix the plot legends

---
 bob/fusion/base/script/plot_fusion_decision_boundary.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bob/fusion/base/script/plot_fusion_decision_boundary.py b/bob/fusion/base/script/plot_fusion_decision_boundary.py
index 3e5c6ae..85a1dd6 100644
--- a/bob/fusion/base/script/plot_fusion_decision_boundary.py
+++ b/bob/fusion/base/script/plot_fusion_decision_boundary.py
@@ -36,7 +36,7 @@ def plot_boundary_decision(algorithm, scores, score_labels, threshold,
   @param threshold    float       threshold of the decision boundary
   '''
   if legends is None:
-    legends = ['Impostor', 'Attack', 'Genuine']
+    legends = ['Zero Effort Impostor', 'Presentation Attack', 'Genuine']
   markers = ['x', 'o', 's']
 
   if scores.shape[1] > 2:
@@ -58,7 +58,7 @@ def plot_boundary_decision(algorithm, scores, score_labels, threshold,
   temp = algorithm.preprocess(temp)
   Z = (algorithm.fuse(temp) > threshold).reshape(xx.shape)
 
-  contourf = plt.contourf(xx, yy, Z, 1, alpha=1, cmap=plt.cm.viridis)
+  contourf = plt.contour(xx, yy, Z, 1, alpha=1, cmap=plt.cm.gray)
 
   if do_grouping:
     gen = grouping(X[Y == 0, :], **kwargs)
-- 
GitLab