Last active
July 11, 2019 14:45
-
-
Save thiagopbueno/7da31e39712cdcc1212a822c413ef4ff to your computer and use it in GitHub Desktop.
Matplotlib for LaTex pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib | |
# http://phyletica.org/matplotlib-fonts/ | |
matplotlib.rcParams['pdf.fonttype'] = 42 | |
matplotlib.rcParams['ps.fonttype'] = 42 | |
matplotlib.rcParams['text.usetex'] = True | |
# https://nerdjusttyped.blogspot.com/2010/07/type-1-fonts-and-matplotlib-figures.html | |
matplotlib.rcParams['ps.useafm'] = True | |
matplotlib.rcParams['pdf.use14corefonts'] = True | |
matplotlib.rcParams['text.usetex'] = True |
Author
thiagopbueno
commented
Jul 11, 2019
- LaTeXify Matplotlib: Matplotlib plots for publishing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment