directly changing the fonts in the plotting file

Solutions on MaxInterview for directly changing the fonts in the plotting file by the best coders in the world

showing results for - "directly changing the fonts in the plotting file"
Jude
10 Jan 2021
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