Created
July 12, 2017 07:42
-
-
Save fabiofortkamp/fe97a4e39c19ad9f5af29610458b8640 to your computer and use it in GitHub Desktop.
Common matplotlib configuration, with LaTeX and my own packages, for easier generation of engineering 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
import matplotlib | |
import matplotlib.pyplot as plt | |
mpl_params = {'text.usetex': True, | |
'font.family': 'serif', | |
'font.serif': 'Palatino', | |
'text.latex.preamble': [r'\usepackage{engsymbols}', | |
r'\usepackage{magref}', | |
r'\usepackage{siunitx}']} | |
matplotlib.rcParams.update(mpl_params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How have I not known that earlier?