From 70496744c9e8da4b902e747951c6fd4a88e74685 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Fri, 31 Mar 2017 19:56:12 +0300 Subject: [PATCH] Add option to plt to avoid label cuts --- notes_tools/reports/filters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notes_tools/reports/filters.py b/notes_tools/reports/filters.py index f3dbd2e..d5ee9c5 100644 --- a/notes_tools/reports/filters.py +++ b/notes_tools/reports/filters.py @@ -31,6 +31,7 @@ def includegraphics(fig_ax, document_path="./", fig_path="fig/", path_to_file = Path(document_path/fig_path) path_to_file.mkdir_p() + fig.tight_layout() fig.savefig(path_to_file/filename) logger.info("Graphique {} sauvé à {}".format(filename, path_to_file)) return "\includegraphics[scale={sc}]{{{f}}}".format(sc = scale,