Last active
August 3, 2016 14:13
-
-
Save danielballan/be066529de85e87a5fe7 to your computer and use it in GitHub Desktop.
Leheny Lab "House Style" for Python 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
# This is Dan Allan's setting of Professor Robert Leheny's plotting style preferences. | |
# Updated October 2014 | |
# | |
# Invoke in Python matplotlib like so: | |
# | |
# import matplotlib as mpl | |
# | |
# mpl.style.use('https://gist.github.com/danielballan/be066529de85e87a5fe7/raw') | |
# | |
# This feature is only available in matplotlib version 1.4 or higher. | |
# Plot area | |
figure.figsize: 10, 8 | |
figure.facecolor: white | |
figure.edgecolor: white | |
axes.facecolor : white | |
axes.grid: False | |
# Axes and ticks | |
axes.linewidth: 2 | |
axes.edgecolor: black | |
xtick.direction: in | |
ytick.direction: in | |
xtick.major.size: 5 | |
xtick.major.width: 2 | |
xtick.minor.size: 5 | |
xtick.minor.width: 2 | |
ytick.major.size: 5 | |
ytick.major.width: 2 | |
ytick.minor.size: 5 | |
ytick.minor.width: 2 | |
# Space xlabels lower than default. | |
xtick.major.pad: 20 | |
xtick.minor.pad: 20 | |
# Font sizes for various elements. | |
font.size: 25 | |
axes.titlesize: 20 | |
axes.labelsize: 20 | |
xtick.labelsize: 20 | |
ytick.labelsize: 20 | |
legend.fontsize: 16 | |
# Use sans-serif LaTeX for all text. | |
font.family: sans-serif | |
font.sans-serif: Helvetica | |
text.usetex: True | |
text.latex.preamble: \usepackage{sfmath} | |
image.cmap: gray | |
# Plot elements | |
lines.linewidth: 5 | |
lines.markersize: 18 | |
# savefig options (avoid clipping at margins) | |
savefig.bbox : tight | |
savefig.pad_inches : 0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment