Answers for "Directly changing the fonts in the plotting file"

1

Directly changing the fonts in the plotting file

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

Code answers related to "Directly changing the fonts in the plotting file"

Python Answers by Framework

Browse Popular Code Answers by Language