Created
April 10, 2022 08:24
-
-
Save algonacci/7e1b5de902b310af211efc60f652d08f to your computer and use it in GitHub Desktop.
A command to setup dark theme on Matplotlib visualization
This file contains hidden or 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
| 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