Image Matrix

The image_matrix() function arranges a set of images in a grid.

Dimensions of the image grid are determined by the shape of the input 2D ndarray.

Elements of the input 2D ndarray are images specified by a ndarrays with shape (n, m) or (n, m, 3) or (n, m, 4).

The image_matrix() function uses geom_image under the hood, so you might want to check out these demos as well:

In [1]:
import numpy as np
from lets_plot import *
from import image_matrix