show_planes

show_planes(im, spacing=10)[source]

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

Parameters:
  • im (ndarray) – A 3D image of the porous material

  • spacing (int (optional, default=10)) – Controls the amount of space to put between each panel

Returns:

image – A 2D array containing the views. This single image can be viewed using matplotlib.pyplot.imshow.

Return type:

ndarray

Examples

Click here to view online example.