JelteF / PyLaTeX

A Python library for creating LaTeX files
https://jeltef.github.io/PyLaTeX/
MIT License
2.24k stars 287 forks source link

support for adding figures via figure handles #346

Open headtr1ck opened 2 years ago

headtr1ck commented 2 years ago

New interface of add_plot: Figure.add_plot(self, *args, figure=None, extension='pdf', **kwargs).

Personally I would make the figure argument the first one and move to an savefig_args argument, but this would break backwards compatibility.

Closes #345

yodaldevoid commented 9 months ago

I would love to get this merged. Only supporting implicit plots really limits where plots can be used.

mayrholu commented 4 months ago

Any news? This PR would really help!