From 97598946ac1c24c985fd4f5a5dcaf693b35d0803 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Wed, 26 Jul 2017 21:38:53 +0200
Subject: [PATCH] revert to figure.set_tight_layout(True)

---
 bob/bio/base/script/evaluate.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bob/bio/base/script/evaluate.py b/bob/bio/base/script/evaluate.py
index eecc37be..734118fb 100644
--- a/bob/bio/base/script/evaluate.py
+++ b/bob/bio/base/script/evaluate.py
@@ -121,7 +121,7 @@ def _plot_roc(frrs, colors, labels, title, fontsize=18, position=None, farfrrs=N
   pyplot.grid(True, color=(0.6,0.6,0.6))
   pyplot.legend(loc=position, prop = {'size':fontsize})
   pyplot.title(title)
-  pyplot.tight_layout()
+  figure.set_tight_layout(True)
 
   return figure
 
@@ -147,7 +147,7 @@ def _plot_det(dets, colors, labels, title, fontsize=18, position=None):
   pyplot.ylabel('FNMR (%)')
   pyplot.legend(loc=position, prop = {'size':fontsize})
   pyplot.title(title)
-  pyplot.tight_layout()
+  figure.set_tight_layout(True)
 
   return figure
 
@@ -194,7 +194,7 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=18, posit
   pyplot.title(title)
   pyplot.xlim([-0.01, 1.01])
   pyplot.ylim([0, 51])
-  pyplot.tight_layout()
+  figure.set_tight_layout(True)
 
   return figure
 
-- 
GitLab