add_image#
- Subplot.add_image(data, vmin=None, vmax=None, cmap='plasma', interpolation='nearest', cmap_interpolation='linear', **kwargs)#
Create an Image Graphic
- Parameters:
data (array-like) – array-like, usually numpy.ndarray, must support
memoryview()| shape must be[n_rows, n_cols],[n_rows, n_cols, 3]for RGB or[n_rows, n_cols, 4]for RGBAvmin (float, optional) – minimum value for color scaling, estimated from data if not provided
vmax (float, optional) – maximum value for color scaling, estimated from data if not provided
cmap (str, optional, default "plasma") – colormap to use to display the data. For supported colormaps see the
cmaplibrary catalogue: https://cmap-docs.readthedocs.io/en/stable/catalog/interpolation (str, optional, default "nearest") – interpolation filter, one of “nearest” or “linear”
cmap_interpolation (str, optional, default "linear") – colormap interpolation method, one of “nearest” or “linear”
kwargs – additional keyword arguments passed to
Graphic
- Return type: