show_fonts¶
- show_fonts(*args, family=None, text=None, size=12, weight='normal', style='normal', stretch='normal')[source]¶
Generate a table of fonts. If a glyph for a particular font is unavailable, it is replaced with the “¤” dummy character.
- Parameters
*args – The font name(s). If none are provided and the
familykeyword argument was not provided, the availablerc['font.sans-serif']fonts and the user fonts added touser_folderare shown.family (
{'serif', 'sans-serif', 'monospace', 'cursive', 'fantasy', 'tex-gyre'}, optional) – If provided, the available fonts in the corresponding families are shown. The fonts belonging to these families are listed under therc['font.serif'],rc['font.sans-serif'],rc['font.monospace'],rc['font.cursive'], andrc['font.fantasy']settings. The family'tex-gyre'draws the TeX Gyre fonts.text (
str, optional) – The sample text. The default sample text includes the Latin letters, Greek letters, Arabic numerals, and some simple mathematical symbols.size (
float, optional) – The font size in points.weight (
str, optional) – The font weight.style (
str, optional) – The font style.stretch (
str, optional) – The font stretch.
- Returns
proplot.figure.Figure– The figure.proplot.gridspec.SubplotGrid– The subplot grid.
See also