Skip to content

Instantly share code, notes, and snippets.

@muendelezaji
Forked from rhiever/tableau10.mplstyle
Last active March 5, 2020 02:40
Show Gist options
  • Save muendelezaji/75fe7ca33ac3b47730ba85378459a206 to your computer and use it in GitHub Desktop.
Save muendelezaji/75fe7ca33ac3b47730ba85378459a206 to your computer and use it in GitHub Desktop.
Custom style (Tableau-inspired) for matplotlib plots in Jupyter Notebooks
# Author: Randal S. Olson (randalolson.com / @randal_olson)
# Uses Tableau's Tableau10 color scheme
#
# In Notebook, use it as follows:
# plt.style.use('https://gist.githubusercontent.com/muendelezaji/75fe7ca33ac3b47730ba85378459a206/raw/1b807615235ff6f4c919b5b70b01a609619e1e9c/tableau10.mplstyle')
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
lines.dash_capstyle: butt
legend.fancybox: True
font.size: 14
axes.prop_cycle: cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])
axes.linewidth: 0
axes.titlesize: 22
axes.labelsize: 16
xtick.labelsize: 14
ytick.labelsize: 14
xtick.major.size: 0
xtick.minor.size: 0
ytick.major.size: 0
ytick.minor.size: 0
axes.grid: True
grid.alpha: 0.3
grid.linewidth: 0.5
grid.linestyle: --
grid.color: black
savefig.transparent: False
savefig.bbox: tight
savefig.format: png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment