Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Attempt #1
- params = {'axes.labelsize': 20,'axes.titlesize':20, 'legend.fontsize': 20, 'xtick.labelsize': 20, 'ytick.labelsize': 20}
- plt.rcParams.update(params)
- ################################################
- #Attempt #2
- MEDIUM_SIZE = 16
- BIGGER_SIZE = 12
- font = {'family' : 'Arial','weight' : 'bold', 'size' : 22}
- plt.rc('font', **font)
- plt.rc('font', size=MEDIUM_SIZE) # controls default text sizes
- plt.rc('axes', titlesize=MEDIUM_SIZE) # fontsize of the axes title
- plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels
- plt.rc('xtick', labelsize=MEDIUM_SIZE) # fontsize of the tick labels
- plt.rc('ytick', labelsize=MEDIUM_SIZE) # fontsize of the tick labels
- plt.rc('legend', fontsize=BIGGER_SIZE) # legend fontsize
- plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title
- ################################################
- #Attempt #3
- plt.rcParams['axes.linewidth'] = 20.0
- ################################################
- #Attempt #4
- ax = plt.subplot(111, xlabel='x', ylabel='y', title='title')
- for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
- ax.get_xticklabels() + ax.get_yticklabels()):
- item.set_fontsize(20)
Add Comment
Please, Sign In to add comment