From b6c7d0dd44a35fdcb11142401dd979b2ea06888d Mon Sep 17 00:00:00 2001 From: Theophile GENTILHOMME Date: Thu, 3 May 2018 08:20:49 +0200 Subject: [PATCH] Pass index when drawing lines: used for pad when drawing IAPMR --- bob/measure/script/figure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bob/measure/script/figure.py b/bob/measure/script/figure.py index f293929..fce84e8 100644 --- a/bob/measure/script/figure.py +++ b/bob/measure/script/figure.py @@ -577,7 +577,7 @@ class Hist(PlotBase): '' if self._criterion is None else\ self._criterion.upper(), ' (dev)' if self._eval else '' ) - self._lines(threshold, label, neg, pos) + self._lines(threshold, label, neg, pos, idx) if sub_plot_idx == 1: self._plot_legends() if self._step_print == sub_plot_idx or idx == self.n_systems - 1: @@ -628,7 +628,8 @@ class Hist(PlotBase): ) return (n, bins, patches) - def _lines(self, threshold, label=None, neg=None, pos=None, **kwargs): + def _lines(self, threshold, label=None, neg=None, pos=None, + idx=None, **kwargs): label = label or 'Threshold' kwargs.setdefault('color', 'C3') kwargs.setdefault('linestyle', '--') -- 2.21.0