PyVista is…

  • Pythonic VTK: a high-level API to the Visualization Toolkit (VTK)

  • mesh data structures and filtering methods for spatial datasets

  • 3D plotting made simple and built for large/complex data geometries

PyVista is a helper library for the Visualization Toolkit (VTK) that takes a different approach on interfacing with VTK through NumPy and direct array access. This package provides a Pythonic, well-documented interface exposing VTK’s powerful visualization backend to facilitate rapid prototyping, analysis, and visual integration of spatially referenced datasets.

This module can be used for scientific plotting for presentations and research papers as well as a supporting module for other mesh dependent Python modules.

Share this project on Twitter: tweet

Want to test-drive PyVista? Check out our live examples on MyBinder: Launch on Binder

PyVista is a NumFOCUS affiliated project
NumFOCUS affiliated projects

Brief Examples#

Here are some brief interactive examples that demonstrate how you might want to use PyVista:

Maps and Geoscience#

Download the surface elevation map of Mount St. Helens and plot it.

from pyvista import examples
mesh = examples.download_st_helens()
warped = mesh.warp_by_scalar('Elevation')
surf = warped.extract_surface().triangulate()
surf = surf.decimate_pro(0.75)  # reduce the density of the mesh by 75%