module plotting.gallery
#
Short summary#
module mlinsights.plotting.gallery
Featurizers for machine learned models.
Functions#
function |
truncated documentation |
---|---|
Plots a gallery of images using matplotlib. |
Documentation#
Featurizers for machine learned models.
- mlinsights.plotting.gallery.plot_gallery_images(imgs, texts=None, width=4, return_figure=False, ax=None, folder_image=None, **figure)#
Plots a gallery of images using matplotlib.
- Parameters:
imgs – list of images (filename, urls or Pillow objects),
texts – text to display (if None, print
'img % i'
)width – number of images on the same line (unused if imgs is a matrix)
figure – additional parameters when the figure is created
return_figure – return the figure as well as the axes
ax – None or existing axes, it should have the same shape of imgs
folder_image – image paths may be relative to some folder, in that case, they should be relative to this folder
- Returns:
axes or (figure, axes) if return_figure is True
See also notebook Search images with deep learning (keras) or Search images with deep learning (torch) for an example. imgs can also be a matrix to force the function to use the same coordinates.