From 2d576ee38025acff1485c6226d84b1d158b0827a Mon Sep 17 00:00:00 2001 From: pseusys Date: Tue, 28 Feb 2023 00:42:26 +0100 Subject: [PATCH] multiplication exported --- sources/graphics_chart_drawer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/graphics_chart_drawer.py b/sources/graphics_chart_drawer.py index f49a9da..d287408 100644 --- a/sources/graphics_chart_drawer.py +++ b/sources/graphics_chart_drawer.py @@ -64,8 +64,8 @@ async def create_loc_graph(yearly_data: Dict, save_path: str): ax.spines["top"].set_visible(False) ax.spines["right"].set_visible(False) - max_value = amax(cumulative.flatten()) - plt.ylim(top=1.05 * max_value, bottom=-1.05 * max_value) + max_offset = 1.05 * amax(cumulative.flatten()) + plt.ylim(top=max_offset, bottom=-max_offset) plt.savefig(save_path, bbox_inches="tight") plt.close(fig)