133 lines (107 with data), 9.4 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, dpi, bbox, viewlimx, viewlimy, datalimx<font color="#909090">=None</font>, datalimy<font color="#909090">=None</font>)</dt><dd><tt>The viewlim are Bound1d instances that give the x and y<br>
viewlimits so that the image can respond to changes in<br>
pan/zoom etc...<br>
<br>
The x and y datalim give the data range of the image. Eg if<br>
datalimx = Bound1D(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-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-draw"><strong>draw</strong></a>(self, renderer<font color="#909090">=None</font>, *args, **kwargs)</dt><dd><tt>Derived classes drawing method</tt></dd></dl>
<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_child_artists"><strong>get_child_artists</strong></a>(self)</dt><dd><tt>Return all artists contained in self</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_dpi"><strong>get_dpi</strong></a>(self)</dt><dd><tt>Get the DPI of the display</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-get_window_extent"><strong>get_window_extent</strong></a>(self, renderer<font color="#909090">=None</font>)</dt><dd><tt>Return the window extent of the <a href="matplotlib.artist.html#Artist">Artist</a> as a Bound2D instance</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_child_attr"><strong>set_child_attr</strong></a>(self, attr, val)</dt><dd><tt>Set attribute attr for self, and all child artists</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 is clipped to bbox</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_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="#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@