Skip to content

Instantly share code, notes, and snippets.

@JustGlowing
Created May 14, 2021 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustGlowing/7472172d6579e60fbf508c36c8dc20fa to your computer and use it in GitHub Desktop.
Save JustGlowing/7472172d6579e60fbf508c36c8dc20fa to your computer and use it in GitHub Desktop.
matplotlib layout
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