Skip to content

Instantly share code, notes, and snippets.

@andrewyates
Created February 1, 2014 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewyates/8748123 to your computer and use it in GitHub Desktop.
Save andrewyates/8748123 to your computer and use it in GitHub Desktop.
ggplot-light style for mpltools
# modified ggplot style with a white background
# from https://github.com/tonysyu/mpltools/blob/master/mpltools/style/ggplot.rc
# which was based on http://www.huyng.com/posts/sane-color-scheme-for-matplotlib/
patch.linewidth = 0.5
patch.facecolor = '#348ABD' # blue
patch.edgecolor = '#EEEEEE'
patch.antialiased = True
font.size = 14.0
axes.facecolor = 'white'
axes.edgecolor = '#E5E5E5'
axes.linewidth = 1
axes.grid = True
axes.titlesize = 'x-large'
axes.labelsize = 'large'
axes.labelcolor = '#555555'
axes.axisbelow = True # grid/ticks are below elements (eg 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 = '#E5E5E5'
grid.linestyle = '-' # solid line
figure.facecolor = '#E5E5E5'
figure.edgecolor = '0.50'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment