Commit b6c7d0dd authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Pass index when drawing lines: used for pad when drawing IAPMR

parent 2716951e
Pipeline #19732 failed with stage
in 51 minutes and 35 seconds
......@@ -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:
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', '--')
Supports Markdown
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