vista [http://docs.pyvista.org/] is a python module that alow easy acceess/use of the Visualization Toolkit (VTK). It makes rendering and slicing 3D volumes, as output from MPSlib, straight forward
vista can be installed using pip:
pip install vista
or conda
conda install vista
In [3]:
import mpslib as mps
mps.trainingimages.ti_list();
In [4]:
TI, TI_filename = mps.trainingimages.rot90()
In [7]:
mps.plot.plot_3d(TI, slice=1)
In [ ]:
In [ ]: