10000 Merge pull request #13954 from meeseeksmachine/auto-backport-of-pr-13… · matplotlib/matplotlib@5c9d362 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c9d362

Browse files
authored
Merge pull request #13954 from meeseeksmachine/auto-backport-of-pr-13949-on-v3.1.x
Backport PR #13949 on branch v3.1.x (DOC: Add documentation to Text.set_fontfamily)
2 parents 53bf105 + 8b8e398 commit 5c9d362

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