Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Created March 22, 2020 10:05
Show Gist options
  • Save qmaruf/ee3818e7857beb7568bf7e915077df70 to your computer and use it in GitHub Desktop.
Save qmaruf/ee3818e7857beb7568bf7e915077df70 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
SMALL_SIZE = 15
MEDIUM_SIZE = 15
BIGGER_SIZE = 15
plt.rc('font', size=BIGGER_SIZE) # controls default text sizes
plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title
plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL_SIZE) # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL_SIZE) # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL_SIZE) # legend fontsize
plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title
%matplotlib inline
# source https://stackoverflow.com/a/39566040/848930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment