Commit ae109d93 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[script][figure] If derived class still uses --title option

parent 4816ae3f
...@@ -295,6 +295,11 @@ class PlotBase(MeasureBase): ...@@ -295,6 +295,11 @@ class PlotBase(MeasureBase):
self._linestyles = utils.get_linestyles( self._linestyles = utils.get_linestyles(
self.n_systems, self._line_linestyles) self.n_systems, self._line_linestyles)
self._titles = ctx.meta.get('titles', []) * 2 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._x_label = ctx.meta.get('x_label')
self._y_label = ctx.meta.get('y_label') self._y_label = ctx.meta.get('y_label')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment