From c054e9839069ef965690255602d260883345dfb0 Mon Sep 17 00:00:00 2001 From: Felix Metzner <felixmetzner@outlook.com> Date: Thu, 18 Apr 2024 20:03:01 +0200 Subject: [PATCH] Minor changes and adding todos. --- .../fitting/dedicated_fit_approach/plotting_tools.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rdstar/offline_analysis/fitting/dedicated_fit_approach/plotting_tools.py b/rdstar/offline_analysis/fitting/dedicated_fit_approach/plotting_tools.py index 716b8bd93..a15643663 100644 --- a/rdstar/offline_analysis/fitting/dedicated_fit_approach/plotting_tools.py +++ b/rdstar/offline_analysis/fitting/dedicated_fit_approach/plotting_tools.py @@ -618,6 +618,11 @@ class SystematicsShapePlotter: shape_plot_info=_shape_plot_info, ) + # TODO: Fix problem that is caused by histogram starting at y = 0.0 + # TODO: Add plot title + # TODO: Add x axis label + # TODO: Add y axis label + _shape_plot_infos.append(_shape_plot_info) return SpecificShapePlotInfoContainer(shape_plot_infos=tuple(_shape_plot_infos)) @@ -632,8 +637,8 @@ class SystematicsShapePlotter: bin_edges: np.ndarray = np.arange(shape_plot_info.shape_error.shape[0] + 1) - 0.5 bin_mids: np.ndarray = (bin_edges[1:] + bin_edges[:-1]) / 2.0 - up_sys: np.ndarray = 1.0 + shape_plot_info.shape_error - down_sys: np.ndarray = 1.0 - shape_plot_info.shape_error + up_sys: np.ndarray = +1.0 * shape_plot_info.shape_error + down_sys: np.ndarray = -1.0 * shape_plot_info.shape_error hist_plot_infos: List[Tuple[str, np.ndarray, str]] = [ (KITColors.kit_blue, up_sys, "Up/Nom"), -- GitLab