From ae109d938117331f73df7e40d5fbacc84eb77285 Mon Sep 17 00:00:00 2001 From: Theophile GENTILHOMME <tgentilhomme@jurasix08.idiap.ch> Date: Tue, 5 Jun 2018 09:28:21 +0200 Subject: [PATCH] [script][figure] If derived class still uses --title option --- bob/measure/script/figure.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bob/measure/script/figure.py b/bob/measure/script/figure.py index 909ee45..1fe241e 100644 --- a/bob/measure/script/figure.py +++ b/bob/measure/script/figure.py @@ -295,6 +295,11 @@ class PlotBase(MeasureBase): self._linestyles = utils.get_linestyles( self.n_systems, self._line_linestyles) self._titles = ctx.meta.get('titles', []) * 2 + # for compatibility + self._title = ctx.meta.get('title') + if not self._titles and self._title is not None: + self._titles = [self._title] * 2 + self._x_label = ctx.meta.get('x_label') self._y_label = ctx.meta.get('y_label') -- GitLab