geom_image displays an image specified by a ndarray with shape (n,m) or (n,m,3) or (n,m,4).

The dtype can be int, uint or float of any size. int values are considered pre-scaled and are expected to fit in [0-255] range. float values are expected to be in range [0-1].

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