Answers for "how to increase font of figure in python"

1

matplotlib change font

from matplotlib import rc
font = {'size'   : 16}
matplotlib.rc('font', **font)

# change font
matplotlib.rcParams['font.sans-serif'] = "Arial"
matplotlib.rcParams['font.family'] = "sans-serif"
Posted by: Guest on July-01-2021
0

change font size globally in python

params = {'axes.titlesize': 20, 'xtick.labelsize': 16, 'ytick.labelsize': 16, 'axes.labelsize': 16}
plt.rcParams.update(params)
Posted by: Guest on April-15-2022

Code answers related to "how to increase font of figure in python"

Python Answers by Framework

Browse Popular Code Answers by Language