@header@
 
 
matplotlib.image
index
/matplotlib/image.py

The image module supports basic image loading, rescaling and display
operations.

 
Modules
       
matplotlib._image

 
Classes
       
matplotlib.artist.Artist
Image

 
class Image(matplotlib.artist.Artist)
     Methods defined here:
__init__(self, dpi, bbox, viewlimx, viewlimy, datalimx=None, datalimy=None)
The viewlim are Bound1d instances that give the x and y
viewlimits so that the image can respond to changes in
pan/zoom etc...
 
The x and y datalim give the data range of the image.  Eg if
datalimx = Bound1D(xmin, xmax), then the 0th column is at
point x = xmin and the last image column is at point x = xmax;
likewise for y.  The default data lim are 0, width-1 and 0,
height-1
 
A linear scaling between datalim and viewlim is assumed
fromarray(self, A)
Load the image from numeric/numarray A
fromfile(self, fname)
Load the image from file fname
get_aspect(self)
Return the method used to constrain the aspoect ratio of the
One of
 
'free'     : aspect ratio not constrained
'preserve' : preserve aspect ration when resizing
get_interpolation(self, s)
Return the interpolation method the image uses when resizing.
 
One of
 
'bicubic', 'bilinear', 'blackman100', 'blackman256', 'blackman64',
'nearest', 'sinc144', 'sinc256', 'sinc64', 'spline16', 'spline36'
get_size(self)
Get the width, height of the input image
set_aspect(self, s)
Set the method used to constrain the aspoect ratio of the
image ehen resizing,
 
One of
 
'free'     : aspect ratio not constrained
'preserve' : preserve aspect ration when resizing
set_data_extent(self, xmin, xmax, ymin, ymax)
Set the data extent that the image pixels represent.  If you
are using the matlab interface, use Axes.set_image_extent
instead
set_interpolation(self, s)
Set the interpolation method the image uses when resizing.
 
One of
 
'bicubic', 'bilinear', 'blackman100', 'blackman256', 'blackman64',
'nearest', 'sinc144', 'sinc256', 'sinc64', 'spline16', 'spline36'

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
get_window_extent(self, renderer=None)
Return the window extent of the Artist as a Bound2D instance
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'

 
Functions
       
arange(...)
arange(start, stop=None, step=1, typecode=None)
 
 Just like range() except it returns an array whose type can be
specified by the keyword argument typecode.

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
@footer@