8000 GitHub - andyreagan/mpl-tex: testing how to match font sizes...
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

andyreagan/mpl-tex

Repository files navigation

Testing matplotlib and latex together, such that the fontsize in a matplotlib figure with pdf backend can have that same fontsize in an actual document.

Setting the mpl figsize to the actual figure width in the document does not work (captions too small), so I ended up with a trail and error solution. I can now use this solution to fix up figures for a paper (ended up being 8.5 inches for a one column revtex document).

The best way that I can figure out to test this is to just render each. In revtex-preprint.tex, the python scripts themselves are contained.

pdflatex -shell-escape revtex-preprint

creates revtex-preprint{1..6}.py and runs them. Seems to take a really long time to run them.

Result: something like 3.6in and 8.45 for two column, one column, respectively.

About

testing how to match font sizes...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0