8000 DOC: Add documentation to Text.set_fontfamily · matplotlib/matplotlib@0ccb51f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ccb51f

Browse files
committed
DOC: Add documentation to Text.set_fontfamily
1 parent 8979b5c commit 0ccb51f

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
@@ -976,6 +976,11 @@ def set_fontfamily(self, fontname):
976976
strings in decreasing priority. Each string may be either a real font
977977
name or a generic font class name. If the latter, the specific font
978978
names will be looked up in the corresponding rcParams.
979+
Defaults to `matplotlib.rcParams['font.family']`.
980+
If a `Text` instance is constructed with `fontfamily=None`, then the
981+
font is set to `matplotlib.rcParams['font.family']`, and the
982+
same is done when `set_fontfamily()` is called on an existing
983+
`Text` instance.
979984
980985
Parameters
981986
----------

0 commit comments

Comments
 (0)
0