8000 Backport PR #13949: DOC: Add documentation to Text.set_fontfamily · matplotlib/matplotlib@8b8e398 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b8e398

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #13949: DOC: Add documentation to Text.set_fontfamily
1 parent 53bf105 commit 8b8e398

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/text.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,11 @@ def set_fontfamily(self, fontname):
977977
name or a generic font class name. If the latter, the specific font
978978
names will be looked up in the corresponding rcParams.
979979
980+
If a `Text` instance is constructed with ``fontfamily=None``, then the
981+
font is set to :rc:`font.family`, and the
982+
same is done when `set_fontfamily()` is called on an existing
983+
`Text` instance.
984+
980985
Parameters
981986
----------
982987
fontname : {FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', \

0 commit comments

Comments
 (0)
0