imshow

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]:
fig, ax = plt.subplots(figsize=[7, 7]);
ps.visualization.imshow(im);
plt.axis(False)
plt.title('default');
../../../_images/examples_visualization_howtos_imshow_6_0.png

ind

[4]:
fig, ax = plt.subplots(figsize=[7, 7]);
ps.visualization.imshow(im, ind =10 );
plt.axis(False)
plt.title('ind = 10');
../../../_images/examples_visualization_howtos_imshow_8_0.png

axis

[5]:
fig, ax = plt.subplots(figsize=[7, 7]);
ps.visualization.imshow(im, axis = 1);
plt.axis(False)
plt.title('axis = 1');
../../../_images/examples_visualization_howtos_imshow_10_0.png