Add option to plt to avoid label cuts
This commit is contained in:
parent
c87dba57b5
commit
70496744c9
@ -31,6 +31,7 @@ def includegraphics(fig_ax, document_path="./", fig_path="fig/",
|
|||||||
path_to_file = Path(document_path/fig_path)
|
path_to_file = Path(document_path/fig_path)
|
||||||
path_to_file.mkdir_p()
|
path_to_file.mkdir_p()
|
||||||
|
|
||||||
|
fig.tight_layout()
|
||||||
fig.savefig(path_to_file/filename)
|
fig.savefig(path_to_file/filename)
|
||||||
logger.info("Graphique {} sauvé à {}".format(filename, path_to_file))
|
logger.info("Graphique {} sauvé à {}".format(filename, path_to_file))
|
||||||
return "\includegraphics[scale={sc}]{{{f}}}".format(sc = scale,
|
return "\includegraphics[scale={sc}]{{{f}}}".format(sc = scale,
|
||||||
|
Loading…
Reference in New Issue
Block a user