Fonts

Plotify provides utlities to add custom fonts to Matplotlib.

plotify.fonts.add_font(path)

Description

Adds a font file to Matplotlib.

Arguments
  • path: Path to the ttf / otf file.
Example
plotify.fonts.add_font('my_file.ttf')

plotify.fonts.add_ttf_directory(dir_path)

Description

Adds all ttf files in a directory

Arguments
  • dir_path: Path to the ttf / otf directory.
Example
plotify.fonts.add_ttf_directory('my_file.ttf')