Created
May 14, 2021 15:21
-
-
Save JustGlowing/7472172d6579e60fbf508c36c8dc20fa to your computer and use it in GitHub Desktop.
matplotlib layout
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
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
from cycler import cycler | |
colors_cycle = ['#30a2da', '#fc4f30', '#e5ae38', '#6d904f', '#8b8b8b'] | |
mpl.rcParams['axes.edgecolor'] = '#999999' | |
mpl.rcParams['axes.grid'] = True | |
mpl.rcParams['grid.color'] = '#999999' | |
mpl.rcParams['axes.labelsize'] = 18 | |
mpl.rcParams['axes.labelweight'] = 2 | |
mpl.rcParams['axes.titlesize'] = 18 | |
mpl.rcParams['axes.titleweight'] = 3 | |
mpl.rcParams['lines.linewidth'] = 3 | |
mpl.rcParams['xtick.bottom'] = False | |
mpl.rcParams['xtick.labelsize'] = 14 | |
mpl.rcParams['ytick.left'] = False | |
mpl.rcParams['ytick.labelsize'] = 14 | |
mpl.rcParams['axes.prop_cycle'] = cycler('color', colors_cycle) | |
mpl.rcParams['boxplot.patchartist'] = True | |
mpl.rcParams['boxplot.boxprops.linewidth'] = 2. | |
mpl.rcParams['boxplot.medianprops.linewidth'] = 2. | |
mpl.rcParams['axes.axisbelow'] = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment