Pythonplot: let LaTeX render text in final document

I would like to better integrate my plots into a LaTeX document. I know about PGFPlots(X) and I really like the idea, unfortunately I could only really work with Py(thon)Plots so far, because of the lack of features in other plotting backends. Is there a way to export plots similar to the way inkscape can do it, by splitting the file into a .pdf and a .pdf_tex containing all the text, including latex formatting?

My setting is maybe not the best option, but it works for my purposes. I use CondaPkg, PythonPlot, and PythonCall, and use for plotting either matplotlib or seaborn. To save it as LaTeX, I use tikzplotlib.

Note that this comes with some cons:

  • tikzplotlib is seemingly not well maintined
  • it most likely will not work with the newest version of matplotlib (I use 3.5.2 for that)
  • When the plots get “complicated enough” the conversion to tikz is buggy. One has to repair this by hand.