Skip to content

Instantly share code, notes, and snippets.

@npyoung
Last active March 30, 2020 18:00
Show Gist options
  • Save npyoung/4613d8acb4857f306ca4952238242cbc to your computer and use it in GitHub Desktop.
Save npyoung/4613d8acb4857f306ca4952238242cbc to your computer and use it in GitHub Desktop.
Dark Matplotlib theme for Jupyter Lab
# Set transparent background default line colors to white.
lines.color: white
patch.edgecolor: white
text.color: white
axes.facecolor: ffffff00
axes.edgecolor: white
axes.labelcolor: white
axes.prop_cycle: cycler('color', ['8dd3c7', 'feffb3', 'bfbbd9', 'fa8174', '81b1d2', 'fdb462', 'b3de69', 'bc82bd', 'ccebc4', 'ffed6f'])
axes.spines.top: False
axes.spines.right: False
legend.framealpha: 0.2
xtick.color: white
ytick.color: white
grid.color: white
image.cmap: inferno
figure.facecolor: 111111ff
figure.edgecolor: black
savefig.facecolor: black
savefig.edgecolor: black
figure.dpi: 96
figure.facecolor: ffffffff
figure.edgecolor: 000000ff
figure.figsize: 5.25, 4.0
savefig.dpi: 600
savefig.facecolor: white
savefig.edgecolor: white
axes.facecolor: white
axes.edgecolor: black
axes.titlesize: 8
axes.titlepad: 0.2
axes.labelcolor: black
axes.prop_cycle: cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])
axes.labelsize: 8
axes.spines.top: False
axes.spines.right: False
image.cmap: inferno
grid.color: black
legend.framealpha: 0.0
legend.borderpad: 0.1
legend.borderaxespad: 0.1
legend.labelspacing: 0.1
legend.fontsize: 8
lines.color: black
patch.edgecolor: black
text.color: black
font.size: 8
xtick.labelsize: 8
xtick.color: black
ytick.labelsize: 8
ytick.color: black
font.size: 18
figure.dpi: 96
figure.figsize: 8.0, 4.5
image.cmap: inferno
@npyoung
Copy link
Author

npyoung commented May 17, 2018

Just drop in ~/.config/matplotlib/stylelib

@npyoung
Copy link
Author

npyoung commented May 22, 2018

May need to call matplotlib.style.reload_library() before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment