import numpy as np from lets_plot import * LetsPlot.setup_html() arr = np.array([ [[150, 0, 0, 255], [0, 150, 0, 255]], [[0, 0, 150, 255], [150, 150, 0, 255]] ]) p = ggplot() + geom_imshow(arr) + ggsize(300, 200) p