Visualization

Create Basic Views

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

visualization.sem(im[, axis])

Simulates an SEM photograph looking into the porous material.

visualization.show_planes(im[, spacing])

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

visualization.xray(im[, axis])

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

visualization.show_3D(im)

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

visualization.imshow(*im[, ind, axis])

Convenience wrapper for matplotlib’s imshow.

visualization.bar(results[, h])

Convenience wrapper for matplotlib’s bar.

visualization.show_mesh(mesh)

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

visualization.set_mpl_style()

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