show_3D

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_3D(im)

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