@@ -216,6 +216,19 @@ def _rgb_to_rgba(A):
216216
217217
218218class _ImageBase (martist .Artist , cm .ScalarMappable ):
219+ """
220+ interpolation and cmap default to their rc settings
221+
222+ cmap is a colors.Colormap instance
223+ norm is a colors.Normalize instance to map luminance to 0-1
224+
225+ extent is data axes (left, right, bottom, top) for making image plots
226+ registered with data plots. Default is to label the pixel
227+ centers with the zero-based row and column indices.
228+
229+ Additional kwargs are matplotlib.artist properties
230+
231+ """
219232 zorder = 0
220233
221234 def __init__ (self , ax ,
@@ -228,19 +241,6 @@ def __init__(self, ax,
228241 resample = False ,
229242 ** kwargs
230243 ):
231- """
232- interpolation and cmap default to their rc settings
233-
234- cmap is a colors.Colormap instance
235- norm is a colors.Normalize instance to map luminance to 0-1
236-
237- extent is data axes (left, right, bottom, top) for making image plots
238- registered with data plots. Default is to label the pixel
239- centers with the zero-based row and column indices.
240-
241- Additional kwargs are matplotlib.artist properties
242-
243- """
244244 martist .Artist .__init__ (self )
245245 cm .ScalarMappable .__init__ (self , norm , cmap )
246246 self ._mouseover = True
@@ -820,6 +820,48 @@ def get_filterrad(self):
820820
821821
822822class AxesImage (_ImageBase ):
823+ """
824+ Parameters
825+ ----------
826+ cmap : colors.Colormap
827+ The Colormap instance or registered colormap name used to map scalar
828+ data to colors.
829+ norm : colors.Normalize
830+ Maps luminance to 0-1.
831+ interpolation : str
832+ Supported values are 'none', 'antialiased', 'nearest', 'bilinear',
833+ 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite',
834+ 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell',
835+ 'sinc', 'lanczos'.
836+ origin : {'upper', 'lower'}
837+ Place the [0, 0] index of the array in the upper left or lower left
838+ corner of the axes. The convention 'upper' is typically used for
839+ matrices and images.
840+ extent : tuple
841+ The data axes (left, right, bottom, top) for making image plots
842+ registered with data plots. Default is to label the pixel
843+ centers with the zero-based row and column indices.
844+ filternorm : bool
845+ A parameter for the antigrain image resize filter
846+ (see the antigrain documentation).
847+ If filternorm is set, the filter normalizes integer values and corrects
848+ the rounding errors. It doesn't do anything with the source floating
849+ point values, it corrects only integers according to the rule of 1.0
850+ which means that any sum of pixel weights must be equal to 1.0. So,
851+ the filter function must produce a graph of the proper shape.
852+ filterrad : float > 0
853+ The filter radius for filters that have a radius parameter, i.e. when
854+ interpolation is one of: 'sinc', 'lanczos' or 'blackman'.
855+ resample : bool
856+ When True, use a full resampling method. When False, only resample when
857+ the output image is larger than the input image.
858+ **kwargs
859+ Additional kwargs are matplotlib.artist properties.
860+
861+ Notes
862+ -----
863+ interpolation and cmap default to their rc settings
864+ """
823865 def __str__ (self ):
824866 return "AxesImage(%g,%g;%gx%g)" % tuple (self .axes .bbox .bounds )
825867
@@ -834,19 +876,6 @@ def __init__(self, ax,
834876 resample = False ,
835877 ** kwargs
836878 ):
837- """
838- interpolation and cmap default to their rc settings
839-
840- cmap is a colors.Colormap instance
841- norm is a colors.Normalize instance to map luminance to 0-1
842-
843- extent is data axes (left, right, bottom, top) for making image plots
844- registered with data plots. Default is to label the pixel
845- centers with the zero-based row and column indices.
846-
847- Additional kwargs are matplotlib.artist properties
848-
849- """
850879
851880 self ._extent = extent
852881
0 commit comments