Set different Custom Font folder

PHOTO EMBED

Tue Dec 07 2021 09:01:02 GMT+0000 (UTC)

Saved by @thejoe01 #matplotlib #font

from matplotlib import font_manager

font_dirs = ['path/to/font/']
font_files = font_manager.findSystemFonts(fontpaths=font_dirs)

for font_file in font_files:
    font_manager.fontManager.addfont(font_file)

# set font
plt.rcParams['font.family'] = 'Comic Sans'
content_copyCOPY