Last active
March 25, 2017 09:25
-
-
Save hbristow/fba1f04bab9650f21461 to your computer and use it in GitHub Desktop.
A modern Matplotlib style
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
# EPIC Matplotlib Style | |
# ===================== | |
# | |
# To make this your default style on OS X, save it as: | |
# ~/.matplotlib/matplotlibrc | |
# | |
# Styles: BMH and GGPLOT | |
# Colors: colorbrewer.org | |
# Backend | |
# ------- | |
backend : MacOSX | |
# Lines | |
# ----- | |
lines.linewidth : 2.0 | |
lines.antialiased : True | |
lines.marker : . | |
# Patches | |
# ------- | |
patch.linewidth : 0.5 | |
patch.facecolor : 3288BD | |
patch.edgecolor : eeeeee | |
patch.antialiased : True | |
# Font | |
# ---- | |
font.family : sans-serif | |
font.sans-serif : Helvetica Neue | |
font.size : 12.0 | |
# Text | |
# ---- | |
mathtext.fontset : cm | |
# Axes | |
# ---- | |
axes.hold : True # whether to clear the axes by default on | |
axes.facecolor : e5e5e5 # axes background color | |
axes.edgecolor : white # axes edge color | |
axes.linewidth : 1 # edge linewidth | |
axes.grid : True # display grid or not | |
axes.titlesize : large # fontsize of the axes title | |
axes.labelsize : large # fontsize of the x any y labels | |
axes.labelcolor : 555555 | |
axes.axisbelow : True # grid/ticks below elements | |
axes.color_cycle : 9E0142, 3288BD, 66C2A5, 5E4FA2, D53E4F, D55E00, 009E73, 0072B2 | |
# Ticks | |
# ----- | |
xtick.major.size : 0 # major tick size in points | |
#xtick.minor.size : 0 # minor tick size in points | |
#xtick.major.pad : 6 # distance to major tick label in points | |
#xtick.minor.pad : 6 # distance to the minor tick label in points | |
xtick.color : 555555 # color of the tick labels | |
xtick.direction : out # direction: in or out | |
#ytick.major.size : 0 # major tick size in points | |
#ytick.minor.size : 0 # minor tick size in points | |
#ytick.major.pad : 6 # distance to major tick label in points | |
#ytick.minor.pad : 6 # distance to the minor tick label in points | |
ytick.color : 555555 # color of the tick labels | |
ytick.direction : out # direction: in or out | |
# Legend | |
# ------ | |
legend.fancybox : False # if True, use a rounded box for the legend | |
legend.numpoints : 1 # the number of points in the legend line | |
#legend.fontsize : large | |
#legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border | |
#legend.borderpad : 0.5 # border whitspace in fontsize units | |
legend.markerscale : 2.0 # the relative size of legend markers vs. original | |
# the following dimensions are in axes coords | |
#legend.labelsep : 0.010 # the vertical space between the legend entries | |
#legend.handlelen : 0.05 # the length of the legend lines | |
#legend.handletextsep : 0.02 # the space between the legend line and legend text | |
#legend.axespad : 0.02 # the border between the axes and legend edge | |
#legend.shadow : False | |
# Grid | |
# ---- | |
grid.color : white | |
grid.linestyle : - | |
# Figure | |
# ------ | |
figure.figsize : 8, 6 # figure size in inches | |
figure.facecolor : white # figure facecolor; 0.75 is scalar gray | |
figure.edgecolor : 0.50 # figure edgecolor | |
#figure.subplot.left : 0.125 # the left side of the subplots of the figure | |
#figure.subplot.right : 0.9 # the right side of the subplots of the figure | |
#figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure | |
#figure.subplot.top : 0.9 # the top of the subplots of the figure | |
#figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots | |
figure.subplot.hspace : 0.5 # the amount of height reserved for white space between subplots | |
# Images | |
# ------ | |
#image.aspect : equal # equal | auto | a number | |
#image.interpolation : bilinear # see help(imshow) for options | |
#image.cmap : jet # gray | jet etc... | |
#image.lut : 256 # the size of the colormap lookup table | |
#image.origin : upper # lower | upper | |
#image.resample : False | |
# Saving Figures | |
# -------------- | |
savefig.dpi : 300 # figure dots per inch | |
savefig.format : pdf # what extension to use for savefig('foo'), or 'auto' | |
savefig.bbox : tight # Minimize superfluous space around plot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment