From 71472508956805d13a88ca3f0bc790cc4d9e2f8b Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Fri, 28 Jul 2017 10:27:35 -0600 Subject: [PATCH] Changed border space for all plots (except DET) --- bob/bio/base/script/evaluate.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bob/bio/base/script/evaluate.py b/bob/bio/base/script/evaluate.py index e97be786..537cd519 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=10, position=None, farfrrs=N min_far = frrs[0][0][0] ticks = [min_far] while ticks[-1] < 1.: ticks.append(ticks[-1] * 10.) - pyplot.axis([min_far,1.,0.,1.]) + pyplot.axis([min_far, 1., -0.01, 1.01]) pyplot.xticks(ticks) # set label, legend and title @@ -130,7 +130,6 @@ def _plot_roc(frrs, colors, labels, title, fontsize=10, 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.ylim([0., 1.01]) return figure @@ -180,7 +179,7 @@ def _plot_cmc(cmcs, colors, labels, title, fontsize=10, position=None): pyplot.xlabel('Rank') pyplot.ylabel('Probability') pyplot.xticks(ticks, [str(t) for t in ticks]) - pyplot.axis([0, max_R, 0., 1.]) + pyplot.axis([0, max_R, -0.01, 1.01]) pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.title(title) @@ -201,11 +200,10 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=10, posit pyplot.xlabel('alpha') pyplot.ylabel('HTER') pyplot.title(title) + pyplot.axis([-0.01, 1.01, -0.01, 0.51]) pyplot.grid(True) pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.title(title) - pyplot.xlim([-0.01, 1.01]) - pyplot.ylim([-0.01, 0.51]) return figure -- GitLab