Currently, the matplotlib figures are included as `pdf` files in latex, but matplotlib allows to export graphs as `pgf` code with the [`backend_pgf`](https://matplotlib.org/stable/api/backend_pgf_api.html).

Using this backend would allow to integrate matplotlib figures using the documents fonts as described in this [blog post](https://jwalton.info/Matplotlib-latex-PGF/). However getting the available `\textwidth` from latex could be tricky.
2021-12-11T21:11:40Z
benabel
closed
[Feature request] Include matplotlib figures as pgf code
https://github.com/quarto-dev/quarto-cli/issues/214