4 ms·
Pgfplots produces highest quality plots that I have seen.
by aborsy 3y ago
Pgfplots produces highest quality plots that I have seen.
- kragen 3y agocan you provide some links to examples so we can see what you mean
- aborsy 3y agoSee examples in the PGFPlots manual: https://ctan.org/pkg/pgfplots https://ctan.org/pkg/pgfplots However, examples from pgfplots and matplotlib should be considered in a paper, together with the effort in preparing and revising the figures.
- terminous 3y agoHow is this relevant? Pgfplots isn't even a matplotlib competitor really, they're completely different in terms of use cases and ecosystems.
- fsh 3y agoI find Pgfplots quite hacky since TeX is really not made for handling data (it doesn't even support floating-point arithmetic). A much cleaner solution is to enable LaTeX text rendering in Matplotlib (https://matplotlib.org/stable/users/explain/text/usetex.html https://matplotlib.org/stable/users/explain/text/usetex.html). In this way, TeX is used for what it is good at (text rendering), and everything else is handled by Matplotlib.
- blt 3y agoOr use Matplotlib's PGF backend. You can even import a preamble so the notation macros from your paper are usable in the legend, axes labels, etc.
- aborsy 3y agoThe idea is to process it all in Python and export the final data points to text files to be plotted by pgfplots. Then you can import the pgfplots code directly in the latex document or slide, and adjust it there. It will all be latex in one document, and you will have full control over the plot and its annotation. With Tikz, you can superimpose diagrams.