@header@
 
 
matplotlib.text
index
/usr/local/lib/python2.3/site-packages/matplotlib/text.py

Figure and Axes text

 
Classes
       
matplotlib.artist.Artist
Text

 
class Text(matplotlib.artist.Artist)
    Handle storing and drawing of text in window or data coordinates
 
Publicly accessible attributes
  dpi     : a DPI instance
  bbox    : the display bounding box Bound2D instance
  transx : the transform of the x data
  transy : the transform of the y data
 
  Methods defined here:
__init__(self, dpi, bbox, x=0, y=0, text='', color='k', verticalalignment='bottom', horizontalalignment='left', fontproperties=<matplotlib.font_manager.FontProperties instance>, rotation=None, transx=Transform: Bound1D: 0 1 to Bound1D: 0 1, transy=Transform: Bound1D: 0 1 to Bound1D: 0 1)
copy_properties(self, t)
Copy properties from t to self
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_fontstyle(self)
Return the font style as string
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_family(self, fontname)
Set the font name, eg, 'Sans', 'Courier', 'Helvetica'
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_fontproperties(self, fp)
set_fontsize(self, fontsize)
Set the font size, eg, 8, 10, 12, 14...
set_fontstyle(self, fontstyle)
Set the font style, one of 'normal', 'italic', 'oblique'
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, tx)
set_transy(self, ty)
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'

 
Data
        False = False
True = True
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
rcParams = {'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.grid': False, 'axes.labelcolor': 'k', 'axes.labelsize': 12.0, 'axes.linewidth': 0.5, 'axes.titlesize': 14.0, 'backend': 'GTKAgg', 'datapath': '/usr/local/share/matplotlib', 'figure.dpi': 80.0, ...}
@footer@