Note
Go to the end to download the full example code.
GridPlot Non-Square Example#
Example showing simple 2x2 GridPlot with Standard images from imageio.
# test_example = true
import fastplotlib as fpl
import imageio.v3 as iio
figure = fpl.Figure(shape=(2, 2), size=(700, 560))
im = iio.imread("imageio:clock.png")
im2 = iio.imread("imageio:astronaut.png")
im3 = iio.imread("imageio:coffee.png")
figure[0, 0].add_image(data=im)
figure[0, 1].add_image(data=im2)
figure[1, 0].add_image(data=im3)
figure.show()
# NOTE: `if __name__ == "__main__"` is NOT how to use fastplotlib interactively
# please see our docs for using fastplotlib interactively in ipython and jupyter
if __name__ == "__main__":
print(__doc__)
fpl.loop.run()
Total running time of the script: (0 minutes 1.240 seconds)