geom_image displays an image specified by a ndarray with shape (n,m) or (n,m,3) or (n,m,4).
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].
import numpy as np from lets_plot import * LetsPlot.setup_html()