Note
Go to the end to download the full example code.
Simple Image#
Example showing the simple plot creation with Standard imageio image.

Imageio: 'camera.png' was not found on your computer; downloading it now.
Try 1. Download from https://github.com/imageio/imageio-binaries/raw/master/images/camera.png (136 kB)
Downloading: 8192/139512 bytes (5.9%)139512/139512 bytes (100.0%)
Done
File saved as /home/runner/.imageio/images/camera.png.
# test_example = true
import fastplotlib as fpl
import imageio.v3 as iio
figure = fpl.Figure(size=(700, 560))
data = iio.imread("imageio:camera.png")
# plot the image data
image_graphic = figure[0, 0].add_image(data=data, name="iio camera")
figure.show()
# NOTE: fpl.loop.run() should not be used for interactive sessions
# See the "JupyterLab and IPython" section in the user guide
if __name__ == "__main__":
print(__doc__)
fpl.loop.run()
Total running time of the script: (0 minutes 5.958 seconds)