- Figure.text(x, y, s, fontdict=None, **kwargs)[source]#
Add text to figure.
- Parameters:
- x, yfloat
The position to place the text. By default, this is in figure coordinates, floats in [0, 1]. The coordinate system can be changed using the transform keyword.
- sstr
The text string.
- fontdictdict, optional
A dictionary to override the default text properties. If not given, the defaults are determined by
rcParams["font.*"]. Properties passed as kwargs override the corresponding ones given in fontdict.
- Returns:
- Other Parameters:
- **kwargs
Textproperties Other miscellaneous text parameters.
- **kwargs
matplotlib.figure.Figure.text — Matplotlib 3.11.0.dev1909+gc0e089d68 documentation