From 3d67d9ba414ab56798fb41a7fbf90846a1d8a366 Mon Sep 17 00:00:00 2001 From: Felix Kleinert <f.kleinert@fz-juelich.de> Date: Wed, 26 Jan 2022 16:28:07 +0100 Subject: [PATCH] include minimal delta for igificance_bars --- mlair/plotting/postprocessing_plotting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index edbdc8ef..ae892631 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -1187,7 +1187,7 @@ class PlotSampleUncertaintyFromBootstrap(AbstractPlotClass): # pragma: no cover if not i == list(asteriks.index).index(self.model_name): x2 = i y = data_table[[self.model_name, data_table.columns[i]]].max().max() - y = max(y, y_prev) * 1.025 + y = max(y, (y + (y-y_prev)) * 1.025) * 1.025 h = .01 * data_table.max().max() ax.plot([x1, x1, x2, x2], [y, y + h, y + h, y], c="k") ax.text((x1 + x2) * .5, y + h, v, ha="center", va="bottom", color="k") @@ -1201,7 +1201,7 @@ class PlotSampleUncertaintyFromBootstrap(AbstractPlotClass): # pragma: no cover if not i == list(asteriks.index).index(self.model_name): y2 = i x = data_table[[self.model_name, data_table.columns[i]]].max().max() - x = max(x, x_prev) * 1.025 + x = max(x, (x + (x-x_prev)) * 1.025) * 1.025 h = .01 * data_table.max().max() ax.plot([x, x+h, x+h, x], [y1, y1, y2, y2], c="k") ax.text(x + h, (y1 + y2) * .5, v, ha="left", va="center", color="k", rotation=-90) -- GitLab