Skip to content

Instantly share code, notes, and snippets.

@lucasgruwez
Created September 4, 2019 09:11
Show Gist options
  • Save lucasgruwez/4b558eb019bdcf5bcd1be07be825e5bf to your computer and use it in GitHub Desktop.
Save lucasgruwez/4b558eb019bdcf5bcd1be07be825e5bf to your computer and use it in GitHub Desktop.
Matplotlib LaTex settings
%matplotlib inline
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt
import matplotlib.font_manager
plt.rcParams["text.usetex"] = True
plt.rcParams["mathtext.fontset"] = "cm"
plt.rcParams["font.family"] = "serif"
plt.rcParams["figure.figsize"] = 6.3, 4.2
# plt.rcParams["figure.autolayout"] = True
plt.rcParams["font.size"] = 12
plt.rcParams["axes.labelsize"] = 12
plt.rcParams["axes.titlesize"] = 12
plt.rcParams["xtick.labelsize"] = 10
plt.rcParams["ytick.labelsize"] = 10
plt.rcParams["axes.linewidth"] = 0.4
plt.rcParams["xtick.major.width"] = 0.4
plt.rcParams["xtick.minor.width"] = 0.4
plt.rcParams["ytick.major.width"] = 0.4
plt.rcParams["ytick.minor.width"] = 0.4
plt.rcParams["grid.linewidth"] = 0.4
plt.rcParams["lines.linewidth"] = 0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment