text¶
This module provides the draw_text convenience function.
-
mATLASplotlib.decorations.text.draw_text(text, axes, loc, align, fontsize=16, **kwargs)¶ Draw arbitrary text strings at (x, y) on the chosen axes.
Parameters: - text (str) – text to draw
- axes (str) – axes to plot on
- loc (tuple(float)) – x and y position of text
- align (tuple(str)) – horizontal and vertical alignment of text
- fontsize (float) – fontsize of legend contents
Keyword Arguments: - colour (str) – set text colour
- transform (str) – use data or axes coordinates