Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
XENON style extracts
backend: pgf
pgf.texsystem: pdflatex # change this if using xetex or lautex
text.usetex: True # use LaTeX to write all text
font.family: serif
font.serif: [] # blank entries should cause plots to inherit fonts from the document
font.sans-serif: []
font.monospace: []
axes.labelsize: 10
font.size: 10
legend.fontsize: 10
xtick.labelsize: 8
ytick.labelsize: 8
figure.figsize: 3.4039020340390205, 2.2692680226926805
text.latex.preamble: \usepackage[utf8x]{inputenc}, \usepackage[T1]{fontenc}, \usepackage{siunitx}
pgf.preamble: \usepackage[utf8x]{inputenc}, \usepackage[T1]{fontenc}, \usepackage{siunitx}
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
%matplotlib inline
params = {
'backend': 'Agg',
# colormap
'image.cmap' : 'viridis',
# figure
'figure.figsize' : (9, 6),
'font.size' : 32,
'font.family' : 'serif',
'font.serif' : ['Times'],
# axes
'axes.titlesize' : 42,
'axes.labelsize' : 32,
'axes.linewidth' : 2,
# ticks
'xtick.labelsize' : 24,
'ytick.labelsize' : 24,
'xtick.major.size' : 16,
'xtick.minor.size' : 8,
'ytick.major.size' : 16,
'ytick.minor.size' : 8,
'xtick.major.width' : 2,
'xtick.minor.width' : 2,
'ytick.major.width' : 2,
'ytick.minor.width' : 2,
'xtick.direction' : 'in',
'ytick.direction' : 'in',
# markers
'lines.markersize' : 12,
'lines.markeredgewidth' : 3,
'errorbar.capsize' : 8,
'lines.linewidth' : 3,
# 'lines.linestyle' : None,
# 'lines.marker' : None,
'savefig.bbox' : 'tight',
'legend.fontsize' : 24,
#'legend.fontsize': 18,
#'figure.figsize': (15, 5),
#'axes.labelsize': 18,
#'axes.titlesize':18,
#'xtick.labelsize':14,
#'ytick.labelsize':14
'axes.labelsize': 24,
'axes.titlesize':24,
'xtick.labelsize':18,
'ytick.labelsize':18,
'mathtext.fontset': 'dejavuserif'
}
plt.rcParams.update(params)
#plt.style.use('latex_prl')
plt.rc('text', usetex=True)
plt.rc('font', family='serif')
plt.rc('font', serif='Times')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.