Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « matplotlib.pyplot »

Classe « Text »

Informations générales

Héritage

builtins.object
    Artist
        Text

Définition

class Text(Artist):

Description [extrait de Text.__doc__]

Handle storing and drawing of text in window or data coordinates.

Constructeur(s)

Signature du constructeur Description
__init__(self, x=0, y=0, text='', color=None, verticalalignment='baseline', horizontalalignment='left', multialignment=None, fontproperties=None, rotation=None, linespacing=None, rotation_mode=None, usetex=None, wrap=False, transform_rotates_text=False, **kwargs) Create a `.Text` instance at *x*, *y* with string *text*. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
zorder3

Liste des propriétés

Nom de la propriétéDescription
axesThe `~.axes.Axes` instance the artist resides in, or *None*. [extrait de __doc__]
mouseover
stale
sticky_edges

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__getstate__(self)
__repr__(self)
contains(self, mouseevent)
draw(self, renderer)
get_bbox_patch(self)
get_c(self) Alias for `get_color`. [extrait de get_c.__doc__]
get_color(self) Return the color of the text. [extrait de get_color.__doc__]
get_family(self) Alias for `get_fontfamily`. [extrait de get_family.__doc__]
get_font(self) Alias for `get_fontproperties`. [extrait de get_font.__doc__]
get_font_properties(self) Alias for `get_fontproperties`. [extrait de get_font_properties.__doc__]
get_fontfamily(self)
get_fontname(self)
get_fontproperties(self) Return the `.font_manager.FontProperties`. [extrait de get_fontproperties.__doc__]
get_fontsize(self)
get_fontstyle(self)
get_fontvariant(self)
get_fontweight(self)
get_ha(self) Alias for `get_horizontalalignment`. [extrait de get_ha.__doc__]
get_horizontalalignment(self)
get_math_fontfamily(self)
get_name(self) Alias for `get_fontname`. [extrait de get_name.__doc__]
get_position(self) Return the (x, y) position of the text. [extrait de get_position.__doc__]
get_prop_tup(self, renderer=None)
get_rotation(self) Return the text angle in degrees between 0 and 360. [extrait de get_rotation.__doc__]
get_rotation_mode(self) Return the text rotation mode. [extrait de get_rotation_mode.__doc__]
get_size(self) Alias for `get_fontsize`. [extrait de get_size.__doc__]
get_stretch(self)
get_style(self) Alias for `get_fontstyle`. [extrait de get_style.__doc__]
get_text(self) Return the text string. [extrait de get_text.__doc__]
get_transform_rotates_text(self)
get_unitless_position(self) Return the (x, y) unitless position of the text. [extrait de get_unitless_position.__doc__]
get_usetex(self) Return whether this `Text` object uses TeX for rendering. [extrait de get_usetex.__doc__]
get_va(self) Alias for `get_verticalalignment`. [extrait de get_va.__doc__]
get_variant(self) Alias for `get_fontvariant`. [extrait de get_variant.__doc__]
get_verticalalignment(self)
get_weight(self) Alias for `get_fontweight`. [extrait de get_weight.__doc__]
get_window_extent(self, renderer=None, dpi=None)
get_wrap(self) Return whether the text can be wrapped. [extrait de get_wrap.__doc__]
set_backgroundcolor(self, color)
set_bbox(self, rectprops)
set_c(self, color) Alias for `set_color`. [extrait de set_c.__doc__]
set_clip_box(self, clipbox)
set_clip_on(self, b)
set_clip_path(self, path, transform=None)
set_color(self, color)
set_family(self, fontname) Alias for `set_fontfamily`. [extrait de set_family.__doc__]
set_font(self, fp) Alias for `set_fontproperties`. [extrait de set_font.__doc__]
set_font_properties(self, fp) Alias for `set_fontproperties`. [extrait de set_font_properties.__doc__]
set_fontfamily(self, fontname)
set_fontname(self, fontname)
set_fontproperties(self, fp)
set_fontsize(self, fontsize)
set_fontstretch(self, stretch)
set_fontstyle(self, fontstyle)
set_fontvariant(self, variant)
set_fontweight(self, weight)
set_ha(self, align) Alias for `set_horizontalalignment`. [extrait de set_ha.__doc__]
set_horizontalalignment(self, align)
set_linespacing(self, spacing)
set_ma(self, align) Alias for `set_multialignment`. [extrait de set_ma.__doc__]
set_math_fontfamily(self, fontfamily)
set_multialignment(self, align)
set_name(self, fontname) Alias for `set_fontname`. [extrait de set_name.__doc__]
set_position(self, xy)
set_rotation(self, s)
set_rotation_mode(self, m)
set_size(self, fontsize) Alias for `set_fontsize`. [extrait de set_size.__doc__]
set_stretch(self, stretch) Alias for `set_fontstretch`. [extrait de set_stretch.__doc__]
set_style(self, fontstyle) Alias for `set_fontstyle`. [extrait de set_style.__doc__]
set_text(self, s)
set_transform_rotates_text(self, t)
set_usetex(self, usetex)
set_va(self, align) Alias for `set_verticalalignment`. [extrait de set_va.__doc__]
set_variant(self, variant) Alias for `set_fontvariant`. [extrait de set_variant.__doc__]
set_verticalalignment(self, align)
set_weight(self, weight) Alias for `set_fontweight`. [extrait de set_weight.__doc__]
set_wrap(self, wrap)
set_x(self, x)
set_y(self, y)
update(self, kwargs)
update_bbox_position_size(self, renderer)
update_from(self, other)

Méthodes héritées de la classe Artist

__init_subclass__, __subclasshook__, add_callback, convert_xunits, convert_yunits, findobj, format_cursor_data, get_agg_filter, get_alpha, get_animated, get_children, get_clip_box, get_clip_on, get_clip_path, get_contains, get_cursor_data, get_figure, get_gid, get_in_layout, get_label, get_path_effects, get_picker, get_rasterized, get_sketch_params, get_snap, get_tightbbox, get_transform, get_transformed_clip_path_and_affine, get_url, get_visible, get_zorder, have_units, is_transform_set, pchanged, pick, pickable, properties, remove, remove_callback, set, set_agg_filter, set_alpha, set_animated, set_contains, set_figure, set_gid, set_in_layout, set_label, set_path_effects, set_picker, set_rasterized, set_sketch_params, set_snap, set_transform, set_url, set_visible, set_zorder

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__