Skip to content

Instantly share code, notes, and snippets.

@whitead
Created February 4, 2016 15:25
Show Gist options
  • Select an option

  • Save whitead/f2674c826cb274f6379f to your computer and use it in GitHub Desktop.

Select an option

Save whitead/f2674c826cb274f6379f to your computer and use it in GitHub Desktop.
Example MPLStyle File
#set the font-size and size of things
figure.figsize: 5, 3
axes.labelsize: 14.3
axes.titlesize: 15.6
xtick.labelsize: 13
ytick.labelsize: 13
legend.fontsize: 13
grid.linewidth: 1.3
lines.linewidth: 2.275
patch.linewidth: 0.39
lines.markersize: 9.1
lines.markeredgewidth: 0
xtick.major.width: 1.3
ytick.major.width: 1.3
xtick.minor.width: 0.65
ytick.minor.width: 0.65
xtick.major.pad: 9.1
ytick.major.pad: 9.1
axes.xmargin : 0
axes.ymargin : 0
#setup our colorscheme
patch.facecolor: 348ABD # blue
patch.edgecolor: EEEEEE
patch.antialiased: True
font.size: 12.0
text.color: black
axes.facecolor: E5E5E5
axes.edgecolor: bcbcbc
axes.linewidth: 1
axes.grid: False
axes.labelcolor: 555555
axes.axisbelow: True # grid/ticks are below elements (e.g., lines, text)
axes.prop_cycle: cycler('color', ['444444', '348ABD', '988ED5', '777777', 'FBC15E', '8EBA42', 'FFB5B8'])
# E24A33 : red
# 348ABD : blue
# 988ED5 : purple
# 777777 : gray
# FBC15E : yellow
# 8EBA42 : green
# FFB5B8 : pink
xtick.color: 555555
xtick.direction: out
ytick.color: 555555
ytick.direction: out
grid.color: white
grid.linestyle: - # solid line
figure.facecolor: white
figure.edgecolor: 0.50
#animation settings
animation.html : html5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment