.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_gallery/gridplot/gridplot.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr__gallery_gridplot_gridplot.py: GridPlot Simple =============== Example showing simple 2x2 GridPlot with Standard images from imageio. .. GENERATED FROM PYTHON SOURCE LINES 7-33 .. image-sg:: /_gallery/gridplot/images/sphx_glr_gridplot_001.webp :alt: gridplot :srcset: /_gallery/gridplot/images/sphx_glr_gridplot_001.webp :class: sphx-glr-single-img .. code-block:: Python # 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") im4 = iio.imread("imageio:hubble_deep_field.png") figure[0, 0].add_image(data=im) figure[0, 1].add_image(data=im2) figure[1, 0].add_image(data=im3) figure[1, 1].add_image(data=im4) 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.run() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.508 seconds) .. _sphx_glr_download__gallery_gridplot_gridplot.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: gridplot.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gridplot.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gridplot.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_