Skip to content

Instantly share code, notes, and snippets.

View julionaojulho's full-sized avatar

Júlio Ferreira julionaojulho

View GitHub Profile
@fabiofortkamp
fabiofortkamp / configure_matplotlib.py
Created July 12, 2017 07:42
Common matplotlib configuration, with LaTeX and my own packages, for easier generation of engineering plots
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)