MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_fontname

Method set_fontname

lib/matplotlib/text.py:1524–1540  ·  view source on GitHub ↗

Alias for `set_fontfamily`. One-way alias only: the getter differs. Parameters ---------- fontname : {FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', \ 'monospace'} See Also -------- .font_manager.FontProperties.set_family

(self, fontname)

Source from the content-addressed store, hash-verified

1522 return self._parse_math
1523
1524 def set_fontname(self, fontname):
1525 """
1526 Alias for `set_fontfamily`.
1527
1528 One-way alias only: the getter differs.
1529
1530 Parameters
1531 ----------
1532 fontname : {FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', \
1533'monospace'}
1534
1535 See Also
1536 --------
1537 .font_manager.FontProperties.set_family
1538
1539 """
1540 self.set_fontfamily(fontname)
1541
1542 def _ha_for_angle(self, angle):
1543 """

Callers

nothing calls this directly

Calls 1

set_fontfamilyMethod · 0.95

Tested by

no test coverage detected