Last active
August 29, 2015 14:07
-
-
Save danielballan/dd1d4aac02564b6837ef to your computer and use it in GitHub Desktop.
Leheny Lab "House Style" for Python matplotlib plots -- serif version
This file contains hidden or 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 August 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: 10 | |
| xtick.major.width: 2 | |
| xtick.minor.size: 10 | |
| xtick.minor.width: 2 | |
| ytick.major.size: 10 | |
| ytick.major.width: 2 | |
| ytick.minor.size: 10 | |
| ytick.minor.width: 2 | |
| # Space xlabels lower than default. | |
| xtick.major.pad: 20 | |
| xtick.minor.pad: 20 | |
| # Font sizes for various elements. | |
| font.size: 20 | |
| axes.titlesize: 20 | |
| axes.labelsize: 15 | |
| xtick.labelsize: 20 | |
| ytick.labelsize: 20 | |
| legend.fontsize: 12 | |
| # Use serif LaTeX, less brittle. | |
| font.family: serif | |
| font.serif: Computer Modern | |
| text.usetex: True | |
| text.latex.preamble: | |
| 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