Last active
August 29, 2015 14:08
-
-
Save danielballan/ef141d2ba3d397e40ad7 to your computer and use it in GitHub Desktop.
Leheny Plotting Style - Safe 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. | |
| # | |
| # THIS IS THE "SAFE" VERSION, WHICH IS NOT AS PRETTY AS OTHER VERIONS, | |
| # BUT LESS LIKELY TO RUN INTO ERRORS ON WINDOWS OR SYSTEMS WITHOUT A GOOD | |
| # LATEX INSTALLATION. | |
| # | |
| # 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: 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 no LaTeX in this safe version. | |
| text.usetex: False | |
| 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