scisalt.matplotlib.Imshow_Slider

class scisalt.matplotlib.Imshow_Slider(image, usecbar=False, **kwargs)[source]

Convenience class for viewing images.

Plots image to a to an instance of matplotlib.axes.Axes, with sliders for controlling bounds, with **kwargs passed through to matplotlib.axes.Axes.imshow.

usecbar determines if a colorbar will be used. Color bars can slow down the viewer significantly.

Changed in version 1.2: Name changed, colorbar options added, p changed to AxesImage.

Parameters:

image : array

An array representing an image.

usecbar : bool

Determines if colorbar is shown. Color bars can slow down the viewer significantly.

kwargs :

Passed through to matplotlib.axes.Axes.imshow.

Attributes

AxesImage The matplotlib.image.AxesImage from matplotlib.axes.Axes.imshow.
ax The matplotlib.axes.Axes used for matplotlib.axes.Axes.imshow.
clim_max Slider value for maximum
clim_min Slider value for minimum
image The image loaded.
imgmax Highest value of input image.
imgmin Lowest value of input image.

Methods

set_cmap(cmap) Sets color map to cmap.