Skip to content

Instantly share code, notes, and snippets.

@y9c
Created January 19, 2019 08:52
Show Gist options
  • Save y9c/074847cb4bf18e9ee03e6faf1975cbe9 to your computer and use it in GitHub Desktop.
Save y9c/074847cb4bf18e9ee03e6faf1975cbe9 to your computer and use it in GitHub Desktop.
some common config for seaborn ploting
sns.set(
context="paper",
style="ticks",
font_scale=1,
rc={
"xtick.labelsize": 16,
"ytick.labelsize": 16,
"axes.labelsize": 14,
"legend.fontsize": 16,
"lines.linewidth": 1.25,
"lines.markersize": 8,
"pdf.fonttype": 42,
"ps.fonttype": 42,
},
)
cmap_npg = [
"#E64B35",
"#4DBBD5",
"#00A087",
"#3C5488",
"#F39B7F",
"#8491B4",
"#91D1C2",
"#DC0000",
"#7E6148",
]
cmap_tab10 = [
"#1f77b4",
"#ff7f0e",
"#2ca02c",
"#d62728",
"#9467bd",
"#8c564b",
"#e377c2",
"#7f7f7f",
"#bcbd22",
"#17becf",
]
cmap_set1 = [
"#E41A1C",
"#377EB8",
"#4DAF4A",
"#984EA3",
"#FF7F00",
"#FFFF33",
"#A65628",
"#F781BF",
"#999999",
]
cmap_tab20c = [
"#3182bd",
"#6baed6",
"#9ecae1",
"#c6dbef",
"#e6550d",
"#fd8d3c",
"#fdae6b",
"#fdd0a2",
"#31a354",
"#74c476",
"#a1d99b",
"#c7e9c0",
"#756bb1",
"#9e9ac8",
"#bcbddc",
"#dadaeb",
"#636363",
"#969696",
"#bdbdbd",
"#d9d9d9",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment