fix : save_fig_file function updated #60

pull/61/head
sepandhaghighi 2021-10-18 16:31:05 +03:30
rodzic d9c736f2b3
commit b128ff35fe
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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