skimage 0.17.2

ParametersReturns
imshow(image, ax=None, show_cbar=None, **kwargs)

By default, the image is displayed in greyscale, rather than the matplotlib default colormap.

Images are assumed to have standard range for their type. For example, if a floating point image has values in [0, 0.5], the most intense color will be gray50, not white.

If the image exceeds the standard range, or if the range is too small to display, we fall back on displaying exactly the range of the input image, along with a colorbar to clearly indicate that this range transformation has occurred.

For signed images, we use a diverging colormap centered at 0.

Parameters

image : array, shape (M, N[, 3])

The image to display.

ax: `matplotlib.axes.Axes`, optional :

The axis to use for the image, defaults to plt.gca().

show_cbar: boolean, optional. :

Whether to show the colorbar (used to override default behavior).

**kwargs : Keyword arguments

These are passed directly to matplotlib.pyplot.imshow .

Returns

ax_im : `matplotlib.pyplot.AxesImage`

The :None:None:`AxesImage` object returned by :None:None:`plt.imshow`.

Show the input image and return the current axes.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/io/_plugins/matplotlib_plugin.py#115
type: <class 'function'>
Commit: