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

Figure and Axes text

 
Modules
       
math

 
Classes
       
matplotlib.artist.Artist
Text

 
class Text(matplotlib.artist.Artist)
    Handle storing and drawing of text in window or data coordinates
 
  Methods defined here:
__init__(self, x=0, y=0, text='', color='k', verticalalignment='bottom', horizontalalignment='left', multialignment=None, fontproperties=<matplotlib.font_manager.FontProperties instance>, rotation=None)
copy_properties(self, t)
Copy properties from t to self
draw(self, renderer)
get_angle(self)
return the text angle as float
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_rotation_matrix(self, x0, y0)
get_text(self)
Get the text as string
get_verticalalignment(self)
Return the vertical alignment as string
get_window_extent(self, renderer)
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_multialignment(self, align)
Set the alignment for multiple lines layout.  The layout of
the bounding box of all the lines is determined bu the
horizontalalignment and verticalalignment properties, but the
multiline text within that box can be left, right or center
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_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:
get_alpha(self)
Return the alpha value used for blending - not supported on
all backends
get_clip_on(self)
Return whether artist uses clipping
get_transform(self)
return the Transformation instance used by this artist
get_visible(self)
return the artist's visiblity
is_figure_set(self)
is_transform_set(self)
Artist has transform explicity let
set_alpha(self, alpha)
Set the alpha value used for blending - not supported on
all backends
set_clip_box(self, clipbox)
Set the artist's clip Bbox
set_clip_on(self, b)
Set  whether artist uses clipping
set_figure(self, fig)
Set the figure instance the artist belong to
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_transform(self, t)
set the Transformation instance used by this artist
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
cos = <ufunc 'cos'>
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
pi = 3.1415926535897931
rcParams = {'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 12.0, 'axes.linewidth': 1.0, 'axes.titlesize': 14.0, 'backend': 'GTKAgg', 'datapath': '/usr/local/share/matplotlib', ...}
sin = <ufunc 'sin'>
@footer@