From f9413908227e16322a3470da18a91a74abafc282 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Oct 2021 16:36:11 +0330 Subject: [PATCH] fix : save_fig_buf 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 63a0b0e..bcabc84 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -153,7 +153,7 @@ def save_fig_buf(figure): "buffer": None} try: buf = io.BytesIO() - figure.savefig(buf, format='png') + figure.savefig(buf, format='png', facecolor=figure.get_facecolor(), edgecolor='none') result["buffer"] = buf return result except Exception as e: