Skip to content

Instantly share code, notes, and snippets.

@pkpinto
Created June 24, 2015 14:43
Show Gist options
  • Save pkpinto/9b608469bfa0e4bd4efa to your computer and use it in GitHub Desktop.
Save pkpinto/9b608469bfa0e4bd4efa to your computer and use it in GitHub Desktop.
# from http://www.huyng.com/posts/sane-color-scheme-for-matplotlib/
# based on matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/ggplot.mplstyle
# get location for placement with
# print(mpl.get_configdir())
# in that directory create a subdirectory called stylelib and
# add your style sheet with the extension mplstyle
patch.linewidth: 0.5
patch.facecolor: 348ABD # blue
patch.edgecolor: EEEEEE
patch.antialiased: True
font.size: 10.0
axes.facecolor: FFFFFF
axes.edgecolor: BCBCBC
axes.linewidth: 1
axes.grid: True
axes.titlesize: x-large
axes.labelsize: 18
axes.labelcolor: 555555
axes.axisbelow: True # grid/ticks are below elements (e.g., lines, text)
axes.color_cycle: E24A33, 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: 0.95
grid.linestyle: - # solid line
figure.facecolor: white
figure.edgecolor: 0.50
legend.fontsize: 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment