multiplication exported

This commit is contained in:
pseusys
2023-02-28 00:42:26 +01:00
parent d43cbe81b2
commit 2d576ee380

View File

@@ -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)