8000 Clarify documentation for textprops keyword parameter of TextArea · matplotlib/matplotlib@2aa52db · GitHub
[go: up one dir, main page]

Skip to content

Commit 2aa52db

Browse files
committed
Clarify documentation for textprops keyword parameter of TextArea
As described in #12121, the current documentation of `textprops` keyword parameter strongly, and erroneously, suggests that `textprops` should be a FontProperties object. In reality, it should instead be a dictionary of keyword parameters that will be passed to the `Text` object inside of `TextArea`. This commit changes the documentation to reflect the current behavior. closes #12121
1 parent 1c17868 commit 2aa52db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,9 @@ def __init__(self, s,
701701
s : str
702702
a string to be displayed.
703703
704-
textprops : `~matplotlib.font_manager.FontProperties`, optional
704+
textprops : dictionary, optional, default: None
705+
Dictionary of keyword parameters to be passed to the
706+
`~matplotlib.text.Text` instance contained inside TextArea.
705707
706708
multilinebaseline : bool, optional
707709
If `True`, baseline for multiline text is adjusted so that

0 commit comments

Comments
 (0)
0