Add option to plt to avoid label cuts

This commit is contained in:
Benjamin Bertrand 2017-03-31 19:56:12 +03:00
parent c87dba57b5
commit 70496744c9
1 changed files with 1 additions and 0 deletions

View File

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