Skip to content
Snippets Groups Projects
Commit a2202a04 authored by Felix Kleinert's avatar Felix Kleinert
Browse files

include minimal delta for igificance_bars

parent 3d67d9ba
No related branches found
No related tags found
4 merge requests!430update recent developments,!413update release branch,!412Resolve "release v2.0.0",!380Resolve "Include Mann-Whitney U rank test"
Pipeline #89794 passed
......@@ -1187,7 +1187,9 @@ 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 + (y-y_prev)) * 1.025) * 1.025
y = max(y, y_prev) * 1.025
if abs(y-y_prev) < y * 0.025:
y = y * 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 +1203,9 @@ 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 + (x-x_prev)) * 1.025) * 1.025
x = max(x, x_prev) * 1.025
if abs(x-x_prev) < x * 0.025:
x = x * 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment