There are five major generic font families in Matplotlib:
- 'serif': Serifs are small decorative flourishes attached to stroke ends of characters. Fonts such as Times New Roman, Century, Garamond, and Palatino are serif fonts.
- 'sans-serif': This means without serif. Fonts such as Helvetica, Arial, Calibri, and DejaVu Sans are sans-serif.
- 'monospace': Monospace fonts have characters of the same width. They are usually used for code.
- 'cursive': Cursive features connected brush strokes, usually in italic, that give a sense of classical elegance.
- 'fantasy': Decorative fonts that look funny.
For scientific publication and usual presentation, we generally use 'sans-serif'. Special font types may help to deliver messages in infographics. ...