show_panels#

This functions create a montage of many 2D slices through a 3D image. This is useful for very quick checks of the image to ensure the features are present, shapes are correct, etc.

import porespy as ps
im = ps.generators.blobs([20, 40, 60], blobiness=0.5)

im#

This argument receives the 3D image which is to be sliced:

fig, ax = ps.visualization.show_panels(im)
../../../_images/c3d2a06ad8edde58caf5a27771e098b4f8bcb0b3e3c23ee78e4e4423ab9ae3d4.png

rc#

Indicates the number of rows and columns to use. The default is [3, 3]. The function will take the needed number of slices to fill in the panel complete, evenly spaced along the specified axis.

fig, ax = ps.visualization.show_panels(im, rc=[2, 4])
../../../_images/f5d68d1ede2f19a78c4a360b5b2205328c2bcfe1ec2dd1dab38c0d0201dd406a.png

axis#

Indicates the direction which slices are taken. By default slices are taken from the x-direction (axis=0), meaning the panels are slices of the “yz-plane”.

fig, ax = ps.visualization.show_panels(im, axis=2)
../../../_images/0bedc965f2ca0b11d10acb0950a6bf11b9c8b53d97a1438d0e2dc976a8e7c144.png