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)
Different scalebars for different images
[4]:
g = isns.ImageGrid(img_coll, dx=[0.1, 0.015], units="um")
Different colormaps and colorbar titles
[5]:
g = isns.ImageGrid(
img_coll,
cmap=["deep", "magma"],
cbar_label=["PL Intensity", "Height (nm)"],
height=5
)
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
)
[ ]: