From bbfa677e3e20235eea9f677ecda3788798dc1753 Mon Sep 17 00:00:00 2001 From: Theophile GENTILHOMME <tgentilhomme@jurasix08.idiap.ch> Date: Wed, 25 Apr 2018 17:12:57 +0200 Subject: [PATCH] Changes related to number of bins --- bob/bio/base/script/figure.py | 4 ++-- bob/bio/base/test/test_commands.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bob/bio/base/script/figure.py b/bob/bio/base/script/figure.py index aba8cecf..887ac3e7 100644 --- a/bob/bio/base/script/figure.py +++ b/bob/bio/base/script/figure.py @@ -202,8 +202,8 @@ class Hist(measure_figure.Hist): def _setup_hist(self, neg, pos): self._title_base = 'Biometric scores' self._density_hist( - pos[0], label='Genuines', alpha=0.9, color='C2' + pos[0], n=0, label='Genuines', alpha=0.9, color='C2' ) self._density_hist( - neg[0], label='Zero-effort impostors', alpha=0.8, color='C0' + neg[0], n=1, label='Zero-effort impostors', alpha=0.8, color='C0' ) diff --git a/bob/bio/base/test/test_commands.py b/bob/bio/base/test/test_commands.py index 22f01ebe..c834a52d 100644 --- a/bob/bio/base/test/test_commands.py +++ b/bob/bio/base/test/test_commands.py @@ -191,14 +191,14 @@ def test_hist(): with runner.isolated_filesystem(): result = runner.invoke(commands.hist, ['--criterion', 'hter', '--output', 'HISTO.pdf', '-b', - 30,'--no-evaluation', dev1, dev2]) + '30,auto','--no-evaluation', dev1, dev2]) if result.output: click.echo(result.output) assert result.exit_code == 0, (result.exit_code, result.output) with runner.isolated_filesystem(): result = runner.invoke(commands.hist, ['--criterion', 'eer', '--output', - 'HISTO.pdf', '-b', 30, + 'HISTO.pdf', '-b', '30', '-ts', 'A,B', dev1, test1, dev2, test2]) if result.output: -- GitLab