classmatplotlib.image.NonUniformImage(ax, *, interpolation='nearest', **kwargs)[source]
 
Bases: matplotlib.image.AxesImage  Parameters 
 
interpolation{'nearest', 'bilinear'}, default: 'nearest'

**kwargs

All other keyword arguments are identical to those of AxesImage.       get_extent()[source]
 
Return the image extent as tuple (left, right, bottom, top). 
   make_image(renderer, magnification=1.0, unsampled=False)[source]
 
Normalize, rescale, and colormap this image's data for rendering using renderer, with the given magnification. If unsampled is True, the image will not be scaled, but an appropriate affine transformation will be returned instead.  Returns 
 
image(M, N, 4) uint8 array


The RGBA image, resampled unless unsampled is True.  
x, yfloat


The upper left corner where the image should be drawn, in pixel space.  
transAffine2D


The affine transformation from image to pixel space.     
   mouseover=False

   set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, array=<UNSET>, clim=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, cmap=<UNSET>, data=<UNSET>, extent=<UNSET>, filternorm=<UNSET>, filterrad=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, interpolation=<UNSET>, interpolation_stage=<UNSET>, label=<UNSET>, norm=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, resample=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]
 
Set multiple properties at once. Supported properties are   
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha float or 2D array-like or None  
animated bool  
array unknown  
clim (vmin: float, vmax: float)  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
cmap unknown  
data unknown  
extent 4-tuple of float  
figure Figure  
filternorm unknown  
filterrad unknown  
gid str  
in_layout bool  
interpolation {'nearest', 'bilinear'} or None  
interpolation_stage {'data', 'rgba'} or None  
label object  
norm unknown  
path_effects AbstractPathEffect  
picker None or bool or float or callable  
rasterized bool  
resample bool or None  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
transform Transform  
url str  
visible bool  
zorder float   
   set_array(*args)[source]
 
Retained for backwards compatibility - use set_data instead.  Parameters 
 
Aarray-like

   
   set_cmap(cmap)[source]
 
Set the colormap for luminance data.  Parameters 
 
cmapColormap or str or None

   
   set_data(x, y, A)[source]
 
Set the grid for the pixel centers, and the pixel values.  Parameters 
 
x, y1D array-like


Monotonic arrays of shapes (N,) and (M,), respectively, specifying pixel centers.  
Aarray-like


(M, N) ndarray or masked array of values to be colormapped, or (M, N, 3) RGB array, or (M, N, 4) RGBA array.     
   set_filternorm(s)[source]
 
Set whether the resize filter normalizes the weights. See help for imshow.  Parameters 
 
filternormbool

   
   set_filterrad(s)[source]
 
Set the resize filter radius only applicable to some interpolation schemes -- see help for imshow  Parameters 
 
filterradpositive float

   
   set_interpolation(s)[source]
 
 Parameters 
 
s{'nearest', 'bilinear'} or None


If None, use rcParams["image.interpolation"] (default: 'antialiased').     
   set_norm(norm)[source]
 
Set the normalization instance.  Parameters 
 
normNormalize or None

   Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.