From b4174c2cb9c61d91bf3dcc473c503a2aeb9610ad Mon Sep 17 00:00:00 2001 From: Theophile GENTILHOMME Date: Mon, 25 Jun 2018 14:04:37 +0200 Subject: [PATCH] [script][figure] Fix labels positioning for subplot grid --- 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 f158f32..84a64ee 100644 --- a/bob/measure/script/figure.py +++ b/bob/measure/script/figure.py @@ -711,8 +711,9 @@ class Hist(PlotBase): if col == 0: axis.set_ylabel(self._y_label) # rest to be printed - rest_print = self.n_systems - \ - int(idx / self._step_print) * self._step_print + rest_print = self.n_systems * (2 if self._eval and not self._hide_dev + else 1) - int(idx / self._step_print) \ + * self._step_print if n + self._ncols >= min(self._step_print, rest_print): axis.set_xlabel(self._x_label) dflt_title = "Eval. scores" if evaluation else "Dev. scores" -- 2.21.0