.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_gallery/gridplot/gridplot_non_square.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_non_square.py: GridPlot Non-Square Example =========================== Example showing simple 2x2 GridPlot with Standard images from imageio. .. GENERATED FROM PYTHON SOURCE LINES 7-31 .. image-sg:: /_gallery/gridplot/images/sphx_glr_gridplot_non_square_001.webp :alt: gridplot non square :srcset: /_gallery/gridplot/images/sphx_glr_gridplot_non_square_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") 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.run() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.407 seconds) .. _sphx_glr_download__gallery_gridplot_gridplot_non_square.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: gridplot_non_square.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gridplot_non_square.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gridplot_non_square.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_