Last active
November 12, 2020 22:43
-
-
Save alexklapheke/5f61bac1ea32abd10903365f82606da9 to your computer and use it in GitHub Desktop.
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
# To use: | |
# 1. Place in ~/.config/matplotlib/stylelib/ | |
# 2. In Python file: plt.style.use("alex") | |
# Text formatting | |
font.family : Linux Libertine O | |
axes.unicode_minus : True | |
figure.titlesize : 12 | |
axes.titlesize : 12 | |
axes.labelsize : 12 | |
xtick.labelsize : 10 | |
ytick.labelsize : 10 | |
legend.fontsize : 10 | |
# Colors | |
image.cmap : plasma | |
axes.prop_cycle : cycler(color = ["1b9e77", "d95f02", "7570b3", "e7298a", "66a61e", "e6ab02", "a6761d", "666666"]) # Color Brewer Dark2 (teal, orange, blue, pink, green, yellow, brown, gray) | |
xtick.color : gray | |
ytick.color : gray | |
# Plot elements | |
grid.linestyle : : | |
grid.alpha : 0.5 | |
lines.linewidth : 1.5 # pts | |
lines.markersize : 10 | |
date.autoformatter.month : %b | |
date.autoformatter.day : %b %_d | |
scatter.marker : . | |
# Boxplot elements | |
boxplot.boxprops.color : C0 | |
boxplot.whiskerprops.color : C0 | |
boxplot.capprops.color : C0 | |
boxplot.medianprops.color : C1 | |
boxplot.flierprops.markeredgecolor : C1 | |
# boxplot.flierprops.marker : . | |
# boxplot.flierprops.markersize : 15 | |
# boxplot.flierprops.markerfacecolor : C2 | |
# boxplot.flierprops.alpha : 0.5 | |
# Error bar elements | |
errorbar.capsize : 6 | |
# Spacing | |
xtick.major.pad : 5 # pt | |
ytick.major.pad : 5 # pt | |
# Clutter | |
axes.grid : False | |
axes.spines.left : False | |
axes.spines.bottom : False | |
axes.spines.top : False | |
axes.spines.right : False | |
xtick.top : False | |
xtick.bottom : False | |
ytick.left : False | |
ytick.right : False | |
legend.frameon : False | |
# Export options | |
savefig.format : svg | |
savefig.transparent : True | |
savefig.bbox : tight | |
# savefig.pad_inches : 0 | |
svg.fonttype : none # Export SVG with real text, not paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment