|
Methods defined here:
- __init__(self, dpi, bbox, x=0, y=0, text='', color='k', verticalalignment='bottom', horizontalalignment='left', fontproperties=<matplotlib.font_manager.FontProperties instance>, fontname='sans-serif', fontstyle='normal', fontangle='normal', fontvariant='normal', fontweight='normal', fontsize='small', rotation=None, transx=Transform: Bound1D: 0 1 to Bound1D: 0 1, transy=Transform: Bound1D: 0 1 to Bound1D: 0 1)
- copy_properties(self, text)
- get_color(self)
- Return the color of the text
- get_font_properties(self)
- Return the font object
- get_fontangle(self)
- Get the font angle as string
- get_fontname(self)
- Return the font name as string
- get_fontsize(self)
- Return the font size as integer
- get_fontweight(self)
- Get the font weight as string
- get_horizontalalignment(self)
- Return the horizontal alignment as string
- get_position(self)
- Return x, y as tuple
- get_prop_tup(self)
- Return a hashable tuple of properties
Not intended to be human readable, but useful for backends who
want to cache derived information about text (eg layouts) and
need to know if the text has changed
- get_rotation(self)
- Return the text rotation arg
- get_text(self)
- Get the text as string
- get_verticalalignment(self)
- Return the vertical alignment as string
- get_window_extent(self, renderer)
- Return the bounding box of the text in window coords as a
Bound2D instance
- get_xy_display(self)
- is_math_text(self)
- set_backgroundcolor(self, color)
- Set the background color of the text
- set_color(self, color)
- Set the foreground color of the text
- set_fontangle(self, style)
- Set the font angle, one of 'normal', 'italic', 'oblique'
- set_fontname(self, fontname)
- Set the font name, eg, 'Sans', 'Courier', 'Helvetica'
- set_fontsize(self, fontsize)
- Set the font size, eg, 8, 10, 12, 14...
- set_fontweight(self, weight)
- Set the font weight, one of:
'normal', 'bold', 'heavy', 'light', 'ultrabold', 'ultralight'
- set_horizontalalignment(self, align)
- Set the horizontal alignment to one of
'center', 'right', or 'left'
- set_position(self, xy)
- set_rotation(self, s)
- Currently only s='vertical', or s='horizontal' are supported
- set_text(self, text)
- Set the text
- set_transx(self, trans)
- Set the x transform
- set_transy(self, trans)
- Set the y transform
- set_verticalalignment(self, align)
- Set the vertical alignment to one of
'center', 'top', or 'bottom'
- set_x(self, x)
- set_y(self, y)
- update_properties(self, d)
- Update the font attributes with the dictionary in d
Methods inherited from matplotlib.artist.Artist:
- draw(self, renderer=None, *args, **kwargs)
- Derived classes drawing method
- get_alpha(self)
- Return the alpha value used for blending - not supported on
all backends
- get_child_artists(self)
- Return all artists contained in self
- get_clip_on(self)
- Return whether artist uses clipping
- get_dpi(self)
- Get the DPI of the display
- get_visible(self)
- return the artist's visiblity
- set_alpha(self, alpha)
- Set the alpha value used for blending - not supported on
all backends
- set_child_attr(self, attr, val)
- Set attribute attr for self, and all child artists
- set_clip_on(self, b)
- Set whether artist is clipped to bbox
- set_lod(self, on)
- Set Level of Detail on or off. If on, the artists may examine
things like the pixel width of the axes and draw a subset of
their contents accordingly
- set_visible(self, b)
- set the artist's visiblity
Data and other attributes inherited from matplotlib.artist.Artist:
- aname = 'Artist'
|