Collection of images#

[1]:
import seaborn_image as isns

isns.set_context("notebook")
[2]:
pl = isns.load_image("fluorescence")
polymer = isns.load_image("polymer")

img_coll = [pl, polymer]

We will now see how to plot the collection of images on a grid

[3]:
g = isns.ImageGrid(img_coll)
../_images/Tutorial_Image_Collection_4_0.svg

Different scalebars for different images

[4]:
g = isns.ImageGrid(img_coll, dx=[0.1, 0.015], units="um")
../_images/Tutorial_Image_Collection_6_0.svg

Different colormaps and colorbar titles

[5]:
g = isns.ImageGrid(
    img_coll,
    cmap=["deep", "magma"],
    cbar_label=["PL Intensity", "Height (nm)"],
    height=5
    )
../_images/Tutorial_Image_Collection_8_0.svg

Apply parameters to specific images. Here, we apply robust parameter only to a specific image.

[6]:
pol_outliers = isns.load_image("polymer outliers")

img_coll.append(pol_outliers)

g = isns.ImageGrid(
    img_coll,
    robust=[False, False, True],
    perc=[None, None, (0.5, 99.5)],
    height=5
    )
../_images/Tutorial_Image_Collection_10_0.svg
[ ]: