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,