show_planes

Import packages

[1]:
import porespy as ps
import matplotlib.pyplot as plt
ps.visualization.set_mpl_style()

Create image:

[2]:
im = ps.generators.blobs([100, 100, 100])

Display image:

[3]:
x = ps.visualization.show_planes(im=im)

fig, ax = plt.subplots(figsize=[7, 7]);
plt.axis(False);
plt.imshow(x);
plt.title('default');
../../../_images/examples_visualization_howtos_show_planes_6_0.png

spacing

[4]:
x = ps.visualization.show_planes(im=im, spacing = 2)

fig, ax = plt.subplots(figsize=[7, 7]);
plt.axis(False);
plt.imshow(x);
plt.title('spacing = 2');
../../../_images/examples_visualization_howtos_show_planes_8_0.png