From b128ff35fe0c3eb701a980816098e512677882fb Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Oct 2021 16:31:05 +0330 Subject: [PATCH] fix : save_fig_file function updated #60 --- samila/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samila/functions.py b/samila/functions.py index 02fce71..63a0b0e 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -129,7 +129,7 @@ def save_fig_file(figure, file_adr, depth): return {"status": False, "message": NO_FIG_ERROR_MESSAGE} result = {"status": True, "message": FIG_SAVE_SUCCESS_MESSAGE} try: - figure.savefig(file_adr, dpi=depth * figure.dpi) + figure.savefig(file_adr, dpi=depth * figure.dpi, facecolor=figure.get_facecolor(), edgecolor='none') return result except Exception as e: result["status"] = False