imshow
¶
This is a wrapper around matplotlib’s imshow
that works better with voxel images
import porespy as ps
import matplotlib.pyplot as plt
ps.visualization.set_mpl_style()
[01:03:50] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
im
¶
The image to show. Can be 2D or 3D:
axis
¶
3D images must be sliced to present a 2D view. This argument controls which axis to slice along. The default is 2, which is the traditional z-axis, so the function will show an xy slice.
ind
¶
The location or index to slice at, with the default being the midpoint of the specified axis.
kwargs
¶
All other keyword arguments are passed on to plt.imshow
. For instance you can set the colormap: