matplotlib change font

Solutions on MaxInterview for matplotlib change font by the best coders in the world

showing results for - "matplotlib change font"
Jet
13 Mar 2019
1from matplotlib import rc
2font = {'size'   : 16}
3matplotlib.rc('font', **font)
4
5# change font
6matplotlib.rcParams['font.sans-serif'] = "Arial"
7matplotlib.rcParams['font.family'] = "sans-serif"
8