porespy.visualization#

This module contains functions for quickly visualizing 3D images in 2D views.

Functions#

bar(results[, h])

Convenience wrapper for matplotlib's bar.

imshow(im[, ind, axis])

Convenience wrapper for matplotlib's imshow.

prep_for_imshow(im[, mask, axis, slice])

Adjusts the range of greyscale values in an image to improve visualization

satn_to_movie(im, satn[, cmap, c_under, c_over, ...])

Converts a saturation map into an animation that can be saved

satn_to_panels(satn, im[, bins, axis, slice])

Produces a set of images with each panel containing one saturation

sem(im[, axis])

Simulates an SEM image looking into the porous material.

set_mpl_style()

Prettifies matplotlib's output by adjusting fonts, markersize etc.

show_3D(im)

Rotates a 3D image and creates an angled view for rough 2D visualization.

show_mesh(mesh)

Visualizes the mesh of a region as obtained by get_mesh function in the

show_panels(im[, rc, axis])

Show slices of a 3D image as a 2D array of panels.

show_planes(im[, spacing])

Create a quick montage showing a 3D image in all three directions

xray(im[, axis])

Simulates an X-ray radiograph looking through the porous material.