show_image¶
- artpop.visualization.show_image(image, percentile=[0.1, 99.9], subplots=None, cmap='gray_r', figsize=(10, 10), **kwargs)[source]¶
Display image using matplotlib.
- Parameters
- image
ndarray
The image pixels.
- percentilelist-like or None, optional
Set the min and max pixel values to the given low and high percentile values: [low, high]. If None, use all pixel values.
- subplotstuple or None, optional
The
matplotlib
figure and axis objects (fig
,ax
). If None, a new figure will be created.- cmapstr, optional
matplotlib
color map.- figsizetuple, optional
Figure size. Only used if subplots is None.
- **kwargs
Keyword arguments for
imshow
.
- image
- Returns
- fig
Figure
The Figure object.
- ax
AxesSubplot
The axis.
- fig