matplotlib.pyplot.figtext
-
matplotlib.pyplot.figtext(*args, **kwargs)[source] -
Add text to figure.
Call signature:
text(x, y, s, fontdict=None, **kwargs)
Add text to figure at location x, y (relative 0-1 coords). See
text()for the meaning of the other arguments.kwargs control the
Textproperties:Property Description agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphafloat (0.0 transparent through 1.0 opaque) animatedbool backgroundcolorany matplotlib color bboxFancyBboxPatch prop dict clip_boxa matplotlib.transforms.Bboxinstanceclip_onbool clip_path[ ( Path,Transform) |Patch| None ]colorany matplotlib color containsa callable function familyor fontfamily or fontname or name[FONTNAME | 'serif' | 'sans-serif' | 'cursive' | 'fantasy' | 'monospace' ] figurea Figureinstancefontpropertiesor font_propertiesa matplotlib.font_manager.FontPropertiesinstancegidan id string horizontalalignmentor ha[ 'center' | 'right' | 'left' ] labelobject linespacingfloat (multiple of font size) multialignmentor ma['left' | 'right' | 'center' ] path_effectsAbstractPathEffectpicker[None | bool | float | callable] position(x,y) rasterizedbool or None rotation[ angle in degrees | 'vertical' | 'horizontal' ] rotation_mode[ None | "default" | "anchor" ] sizeor fontsize[size in points | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' ] sketch_params(scale: float, length: float, randomness: float) snapbool or None stretchor fontstretch[a numeric value in range 0-1000 | 'ultra-condensed' | 'extra-condensed' | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | 'extra-expanded' | 'ultra-expanded' ] styleor fontstyle[ 'normal' | 'italic' | 'oblique'] textstring or anything printable with '%s' conversion. transformTransformurla url string usetexbool or None variantor fontvariant[ 'normal' | 'small-caps' ] verticalalignmentor va[ 'center' | 'top' | 'bottom' | 'baseline' ] visiblebool weightor fontweight[a numeric value in range 0-1000 | 'ultralight' | 'light' | 'normal' | 'regular' | 'book' | 'medium' | 'roman' | 'semibold' | 'demibold' | 'demi' | 'bold' | 'heavy' | 'extra bold' | 'black' ] wrapbool xfloat yfloat zorderfloat
Examples using matplotlib.pyplot.figtext
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/matplotlib.pyplot.figtext.html