147 lines (118 with data), 10.1 kB
@header@
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="matplotlib.html"><font color="#ffffff">matplotlib</font></a>.image</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/lib/python2.3/site-packages/matplotlib/image.py">/usr/local/lib/python2.3/site-packages/matplotlib/image.py</a></font></td></tr></table>
<p><tt>The image module supports basic image loading, rescaling and display<br>
operations.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="matplotlib._image.html">matplotlib._image</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="matplotlib.artist.html#Artist">matplotlib.artist.Artist</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="matplotlib.image.html#Image">Image</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Image">class <strong>Image</strong></a>(<a href="matplotlib.artist.html#Artist">matplotlib.artist.Artist</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Image-__init__"><strong>__init__</strong></a>(self, viewlim, datalim, displaylim)</dt><dd><tt>The viewlim instance that give the x and y viewlimits so that<br>
the image can respond to changes in pan/zoom etc...<br>
<br>
The x and y datalim give the data range of the image. Eg if<br>
datalim.interalx() = (xmin, xmax), then the 0th column is at<br>
point x = xmin and the last image column is at point x = xmax;<br>
likewise for y. The default data lim are 0, width-1 and 0,<br>
height-1<br>
<br>
A linear scaling between datalim and viewlim is assumed</tt></dd></dl>
<dl><dt><a name="Image-draw"><strong>draw</strong></a>(self, renderer, *args, **kwargs)</dt></dl>
<dl><dt><a name="Image-fromarray"><strong>fromarray</strong></a>(self, A)</dt><dd><tt>Load the image from numeric/numarray A</tt></dd></dl>
<dl><dt><a name="Image-fromfile"><strong>fromfile</strong></a>(self, fname)</dt><dd><tt>Load the image from file fname</tt></dd></dl>
<dl><dt><a name="Image-get_aspect"><strong>get_aspect</strong></a>(self)</dt><dd><tt>Return the method used to constrain the aspoect ratio of the<br>
One of<br>
<br>
'free' : aspect ratio not constrained<br>
'preserve' : preserve aspect ration when resizing</tt></dd></dl>
<dl><dt><a name="Image-get_interpolation"><strong>get_interpolation</strong></a>(self)</dt><dd><tt>Return the interpolation method the image uses when resizing.<br>
<br>
One of<br>
<br>
'bicubic', 'bilinear', 'blackman100', 'blackman256', 'blackman64',<br>
'nearest', 'sinc144', 'sinc256', 'sinc64', 'spline16', 'spline36'</tt></dd></dl>
<dl><dt><a name="Image-get_size"><strong>get_size</strong></a>(self)</dt><dd><tt>Get the width, height of the input image</tt></dd></dl>
<dl><dt><a name="Image-set_aspect"><strong>set_aspect</strong></a>(self, s)</dt><dd><tt>Set the method used to constrain the aspoect ratio of the<br>
image ehen resizing,<br>
<br>
One of<br>
<br>
'free' : aspect ratio not constrained<br>
'preserve' : preserve aspect ration when resizing</tt></dd></dl>
<dl><dt><a name="Image-set_data_extent"><strong>set_data_extent</strong></a>(self, xmin, xmax, ymin, ymax)</dt><dd><tt>Set the data extent that the image pixels represent. If you<br>
are using the matlab interface, use Axes.set_image_extent<br>
instead</tt></dd></dl>
<dl><dt><a name="Image-set_interpolation"><strong>set_interpolation</strong></a>(self, s)</dt><dd><tt>Set the interpolation method the image uses when resizing.<br>
<br>
One of<br>
<br>
'bicubic', 'bilinear', 'blackman100', 'blackman256', 'blackman64',<br>
'nearest', 'sinc144', 'sinc256', 'sinc64', 'spline16', 'spline36'</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.artist.html#Artist">matplotlib.artist.Artist</a>:<br>
<dl><dt><a name="Image-get_alpha"><strong>get_alpha</strong></a>(self)</dt><dd><tt>Return the alpha value used for blending - not supported on<br>
all backends</tt></dd></dl>
<dl><dt><a name="Image-get_clip_on"><strong>get_clip_on</strong></a>(self)</dt><dd><tt>Return whether artist uses clipping</tt></dd></dl>
<dl><dt><a name="Image-get_transform"><strong>get_transform</strong></a>(self)</dt><dd><tt>return the Transformation instance used by this artist</tt></dd></dl>
<dl><dt><a name="Image-get_visible"><strong>get_visible</strong></a>(self)</dt><dd><tt>return the artist's visiblity</tt></dd></dl>
<dl><dt><a name="Image-is_figure_set"><strong>is_figure_set</strong></a>(self)</dt></dl>
<dl><dt><a name="Image-is_transform_set"><strong>is_transform_set</strong></a>(self)</dt><dd><tt><a href="matplotlib.artist.html#Artist">Artist</a> has transform explicity let</tt></dd></dl>
<dl><dt><a name="Image-set_alpha"><strong>set_alpha</strong></a>(self, alpha)</dt><dd><tt>Set the alpha value used for blending - not supported on<br>
all backends</tt></dd></dl>
<dl><dt><a name="Image-set_clip_box"><strong>set_clip_box</strong></a>(self, clipbox)</dt><dd><tt>Set the artist's clip Bbox</tt></dd></dl>
<dl><dt><a name="Image-set_clip_on"><strong>set_clip_on</strong></a>(self, b)</dt><dd><tt>Set whether artist uses clipping</tt></dd></dl>
<dl><dt><a name="Image-set_figure"><strong>set_figure</strong></a>(self, fig)</dt><dd><tt>Set the figure instance the artist belong to</tt></dd></dl>
<dl><dt><a name="Image-set_lod"><strong>set_lod</strong></a>(self, on)</dt><dd><tt>Set Level of Detail on or off. If on, the artists may examine<br>
things like the pixel width of the axes and draw a subset of<br>
their contents accordingly</tt></dd></dl>
<dl><dt><a name="Image-set_transform"><strong>set_transform</strong></a>(self, t)</dt><dd><tt>set the Transformation instance used by this artist</tt></dd></dl>
<dl><dt><a name="Image-set_visible"><strong>set_visible</strong></a>(self, b)</dt><dd><tt>set the artist's visiblity</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.artist.html#Artist">matplotlib.artist.Artist</a>:<br>
<dl><dt><strong>aname</strong> = 'Artist'</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-arange"><strong>arange</strong></a>(...)</dt><dd><tt><a href="#-arange">arange</a>(start, stop=None, step=1, typecode=None)<br>
<br>
Just like range() except it returns an array whose type can be<br>
specified by the keyword argument typecode.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>division</strong> = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)</td></tr></table>
@footer@