Last active
April 28, 2020 13:08
-
-
Save sergeyprokudin/3e3a30648cb4908d8c7a33e4f26a5c4d to your computer and use it in GitHub Desktop.
Setting latex font for matplotlib plots
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
# details: | |
# https://stackoverflow.com/questions/11367736/matplotlib-consistent-font-using-latex/27697390 | |
from matplotlib import rc | |
import matplotlib | |
matplotlib.rcParams['mathtext.fontset'] = 'stix' | |
matplotlib.rcParams['font.family'] = 'STIXGeneral' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment