imshow

tifffile.imshow(data, /, *, photometric=None, planarconfig=None, bitspersample=None, nodata=0, interpolation=None, cmap=None, vmin=None, vmax=None, figure=None, subplot=None, title=None, window_title=None, dpi=96, maxdim=None, background=None, show=False, **kwargs)

Plot n-dimensional images with matplotlib.pyplot.

Parameters:
  • data (NDArray[Any]) – Image array to display.

  • photometric (PHOTOMETRIC | int | str | None) – Color space of image.

  • planarconfig (PLANARCONFIG | int | str | None) – How components of each pixel are stored.

  • bitspersample (int | None) – Number of bits per channel in integer RGB images.

  • interpolation (str | None) – Image interpolation method used in matplotlib.imshow. The default is ‘nearest’ for image dimensions > 512, else ‘bilinear’.

  • cmap (Any | None) – Colormap mapping non-RGBA scalar data to colors. See matplotlib.colors.Colormap.

  • vmin (int | float | None) – Minimum of data range covered by colormap. By default, the complete range of the data is covered.

  • vmax (int | float | None) – Maximum of data range covered by colormap. By default, the complete range of the data is covered.

  • figure (Any) – Matplotlib figure to use for plotting. See matplotlib.figure.Figure.

  • subplot (Any) – A matplotlib.pyplot.subplot axis.

  • title (str | None) – Subplot title.

  • window_title (str | None) – Window title.

  • dpi (int) – Resolution of figure.

  • maxdim (int | None) – Maximum image width and length.

  • background (tuple[float, float, float] | str | None) – Background color.

  • show (bool) – Display figure.

  • **kwargs (Any) – Additional arguments passed to matplotlib.pyplot.imshow.

  • nodata (int | float)

Returns:

Matplotlib figure, subplot, and plot axis.

Return type:

tuple[Any, Any, Any]