Skip to content

Instantly share code, notes, and snippets.

@algonacci
Created April 10, 2022 08:24
Show Gist options
  • Select an option

  • Save algonacci/7e1b5de902b310af211efc60f652d08f to your computer and use it in GitHub Desktop.

Select an option

Save algonacci/7e1b5de902b310af211efc60f652d08f to your computer and use it in GitHub Desktop.
A command to setup dark theme on Matplotlib visualization
import matplotlib.pyplot as plt
plt.rcParams.update({
"lines.color": "white",
"patch.edgecolor": "white",
"text.color": "white",
"axes.facecolor": "black",
"axes.edgecolor": "white",
"axes.labelcolor": "white",
"xtick.color": "white",
"ytick.color": "white",
"grid.color": "grey",
"figure.facecolor": "black",
"figure.edgecolor": "black",
"savefig.facecolor": "black",
"savefig.edgecolor": "black"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment