show_fonts¶
-
show_fonts
(*args, family=None, text=None, size=12)[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
family
keyword argument was not provided, the availablerc[‘font.sans-serif’]
=['TeX Gyre Heros', 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Arial', 'Avenir', 'Fira Math', 'Frutiger', 'Geneva', 'Gill Sans', 'Helvetica', 'Lucid', 'Lucida Grande', 'Myriad Pro', 'Noto Sans', 'Roboto', 'Source Sans Pro', 'Tahoma', 'Trebuchet MS', 'Ubuntu', 'Univers', 'Verdana', 'sans-serif']
fonts and the fonts in your.proplot/fonts
folder are 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 the
rc[‘font.serif’]
=['TeX Gyre Schola', 'TeX Gyre Bonum', 'TeX Gyre Termes', 'TeX Gyre Pagella', 'DejaVu Serif', 'Bitstream Vera Serif', 'Computer Modern Roman', 'Bookman', 'Century Schoolbook L', 'Charter', 'ITC Bookman', 'New Century Schoolbook', 'Nimbus Roman No9 L', 'Palatino', 'Times New Roman', 'Times', 'Utopia', 'serif']
,rc[‘font.sans-serif’]
=['TeX Gyre Heros', 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Arial', 'Avenir', 'Fira Math', 'Frutiger', 'Geneva', 'Gill Sans', 'Helvetica', 'Lucid', 'Lucida Grande', 'Myriad Pro', 'Noto Sans', 'Roboto', 'Source Sans Pro', 'Tahoma', 'Trebuchet MS', 'Ubuntu', 'Univers', 'Verdana', 'sans-serif']
,rc[‘font.monospace’]
=['TeX Gyre Cursor', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Computer Modern Typewriter', 'Andale Mono', 'Courier New', 'Courier', 'Fixed', 'Nimbus Mono L', 'Terminal', 'monospace']
,rc[‘font.cursive’]
=['TeX Gyre Chorus', 'Apple Chancery', 'Felipa', 'Sand', 'Script MT', 'Textile', 'Zapf Chancery', 'cursive']
, andrc[‘font.fantasy’]
=['TeX Gyre Adventor', 'Avant Garde', 'Charcoal', 'Chicago', 'Comic Sans MS', 'Futura', 'Humor Sans', 'Impact', 'Optima', 'Western', 'xkcd', 'fantasy']
settings. The special 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.