Skip to content

Instantly share code, notes, and snippets.

@johnny-godoy
Last active June 25, 2022 03:10
Show Gist options
  • Save johnny-godoy/46c92a49e126790a1b09b505828c20a2 to your computer and use it in GitHub Desktop.
Save johnny-godoy/46c92a49e126790a1b09b505828c20a2 to your computer and use it in GitHub Desktop.
Configurations for matplotlib
import matplotlib.pyplot as plt
plt.style.use('ggplot')
plt.rc('axes', titlesize=14)
plt.rc('legend', fontsize=14)
plt.rc('xtick', labelsize=12)
plt.rc('ytick', labelsize=12)
plt.rcParams.update({'font.size': 16})
plt.rcParams['axes.titlesize'] = 16
plt.rcParams["figure.figsize"] = (10, 6)
plt.rcParams.update({'lines.markeredgewidth': 1})
plt.rcParams.update({'errorbar.capsize': 2})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment