Plotting with vista

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

Visualize a 3D trainig image


In [3]:
import mpslib as mps

mps.trainingimages.ti_list();


Available training images:
   checkerboard - 2D checkerboard
  checkerboard2 - 2D checkerboard - alternative
      strebelle - 2D discrete channels from Strebelle
          lines - 2D discrete lines
         stones - 2D continious stones
     bangladesh - 2D discrete Bangladesh
           maze - 2D discrete maze
          rot90 - 3D rotation 90
          rot20 - 3D rotation 20
       horizons - 3D continious horizons
        fluvsim - 3D discrete fluvsim

In [4]:
TI, TI_filename = mps.trainingimages.rot90()

In [7]:
mps.plot.plot_3d(TI, slice=1)



In [ ]:


In [ ]: