geom_image

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

A regular PNG image, for instance, can be read as ndarray using imread method from matplotlib.image package.

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

LetsPlot.setup_html()