I have one tip for anyone using LaTeX: Please stop using the awful Computer Modern typeface.
Any typeface in particular that you do recommend?
Tips and tricks to write LaTeX papers in with figures generated in Python
51–60 of 68 posts
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#52Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#53If anyone is interested I have uploaded a sample script for generating XY-plots from two numpy lists to github. The code is by no means very good, but I just wanted to share in case anyone wants to try this approach.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#54Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#55I'd also add that for figures Inkscape is invaluable [1]. Save as svg once, and export it as whatever later. I typically export it to PDF (from within Inkscape) for pdflatex. While its typically indispensable for schematics, I often seem to run into the use case of combining previously generated plots or figures, or adding a label/text. Since Inkscape can import pngs, this is a breeze with it. I don't have to go back…
It is mostly known for online plots but it has a free offline API that can export plots to eps/pfd/png/etc.
Parts of their libraries are aimed for interactive plots but imo the basic plots look even better than those of seaborn.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#56I have one tip for anyone using LaTeX: Please stop using the awful Computer Modern typeface.
I personally find Computer Modern quite pleasant to read and work with. Apart from personal preference, why avoid Computer Modern?
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#57Is there a better and more comprehensive plotting library than Matplotlib, it's 3D plots a lack polish. Also it is kind of verbose and require much boilerplate. Its api is sprawling and hard to remember.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#58If you are serious about making beautiful figures in latex, I would seriously recommend using tikz and pgf-plots. It is quite easy to automatically generate tikz-code from python (after all it is supposed to be read and written by humans) and all aspects of the figure can easily be customized. I have been quite successful in generating automated reports with pretty and easily readable figures using tikz and pgf. If a…
\addplot table[x ={Column1}, y ={Column2}] {myData.csv};
The issue is that it can take some time for pgf to load the data and do computations on them, but you can use the external library of tikz so that it does not compute the plot again (and save it as a pdf for later uses).Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#59Earlier quoted context omitted.
I personally find Computer Modern quite pleasant to read and work with. Apart from personal preference, why avoid Computer Modern?
It is an extremely thin font which makes it unsuitable for screen reading.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#60I have one tip for anyone using LaTeX: Please stop using the awful Computer Modern typeface.