Convert plot of system to .tex file

Hello,
My name is Alexandre and I would like to know if the file produced by the line
figLattice = kwant.plot( sys, file = 'test.pdf' )
could give the corresponding plot in .tex file (the same way as tikzplotlib works) so that it can be plotted using tikzpicture for example ?
If not, is there a way to get rid of all the "useless" white space around the figure ?
Thank you and have a good day, Alexandre

Hi Alexandre,
I think your best bet is to use tikzplotlib with Kwant plots. Kwant plotting functions create pyplot figures, so that should work.
Best, Anton
On Sat, 19 Oct 2019 at 18:59, aheuchamps@student.uliege.be wrote:
Hello,
My name is Alexandre and I would like to know if the file produced by the line
figLattice = kwant.plot( sys, file = 'test.pdf' )
could give the corresponding plot in .tex file (the same way as tikzplotlib works) so that it can be plotted using tikzpicture for example ?
If not, is there a way to get rid of all the "useless" white space around the figure ?
Thank you and have a good day, Alexandre

ok I will try that. Thank you, have a good evening.
Alexandre
----- Mail original ----- De: "Anton Akhmerov" anton.akhmerov+kd@gmail.com À: aheuchamps@student.uliege.be Cc: "kwant-discuss" kwant-discuss@kwant-project.org Envoyé: Samedi 19 Octobre 2019 19:05:22 Objet: Re: [Kwant] Convert plot of system to .tex file
Hi Alexandre,
I think your best bet is to use tikzplotlib with Kwant plots. Kwant plotting functions create pyplot figures, so that should work.
Best, Anton
On Sat, 19 Oct 2019 at 18:59, aheuchamps@student.uliege.be wrote:
Hello,
My name is Alexandre and I would like to know if the file produced by the line
figLattice = kwant.plot( sys, file = 'test.pdf' )
could give the corresponding plot in .tex file (the same way as tikzplotlib works) so that it can be plotted using tikzpicture for example ?
If not, is there a way to get rid of all the "useless" white space around the figure ?
Thank you and have a good day, Alexandre
participants (2)
-
aheuchamps@student.uliege.be
-
Anton Akhmerov