Skip to content

Commit f0b549c

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 f0b549c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/offsetbox.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,9 @@ def __init__(self, s,
701701
s : str
702702
a string to be displayed.
703703
704-
textprops : `~matplotlib.font_manager.FontProperties`, optional
705-
704+
textprops : dictionary, optional, default: None
705+
Dictionary of keyword parameters to be passed to the
706+
`~matplotlib.text.Text` instance contained inside TextArea.
706707
multilinebaseline : bool, optional
707708
If `True`, baseline for multiline text is adjusted so that
708709
it is (approximatedly) center-aligned with singleline

0 commit comments

Comments
 (0)