Created
December 4, 2017 04:49
-
-
Save admiralakber/8fff6c97b874c3542ce0ad3d3467c5c7 to your computer and use it in GitHub Desktop.
Getting pretty LaTeX fonts in Python matplotlib
This file contains 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
# Aqeel Akber <email@aqeel.cc> | |
from matplotlib import rc | |
rc('text', usetex = True) | |
rc('font', **{'family' : 'serif', 'serif' : ['Palatino']}) | |
rc('font', family = 'serif') | |
rc('font', size = 28) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment