Skip to main content

Easier Pythonic interface to VTK

Project description

pyvista

Deployment

pypi conda

Build Status

azure

Metrics

codacy codecov

Citation

joss zenodo

License

MIT

Community

slack gitter

3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)

PyVista is…

  • “VTK for humans”: 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 (formerly vtki) is a helper module 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 3D rendering dependent Python modules; see Connections for a list of projects that leverage PyVista.

Share this project on Twitter: tweet

Highlights

Head over to the Quick Examples page in the docs to explore our gallery of examples showcasing what PyVista can do! Want to test-drive PyVista? All of the examples from the gallery are live on MyBinder for you to test drive without installing anything locally: Launch on Binder

Overview of Features

  • Extensive gallery of examples (see Quick Examples)

  • Embeddable rendering in Jupyter Notebooks (static and interactive with Panel)

  • Filtering/plotting tools built for interactivity (see Widgets)

  • Direct access to mesh analysis and transformation routines (see Filters)

  • Intuitive plotting routines with matplotlib similar syntax (see Plotting)

  • Import meshes from many common formats (use pyvista.read()). Support for all formats handled by meshio is built-in!

  • Export meshes as VTK, STL, OBJ, or PLY (mesh.save()) file types or any formats supported by meshio (pyvista.save_meshio())

Documentation

Refer to the documentation for detailed installation and usage details.

For general questions about the project, its applications, or about software usage, please create an issue in the pyvista/pyvista-support repository where the community can collectively address your questions. You are also welcome to join us on Slack or send one of the developers an email. The project support team can be reached at info@pyvista.org.

Installation

PyVista can be installed from PyPI using pip on Python >= 3.5:

pip install pyvista

You can also visit PyPi, Anaconda, or GitHub to download the source.

See the Installation for more details if the installation through pip doesn’t work out.

Connections

PyVista is a powerful tool that researchers can harness to create compelling, integrated visualizations of large datasets in an intuitive, Pythonic manner. Here are a few open-source projects that leverage PyVista:

  • itkwidgets: Interactive Jupyter widgets to visualize images, point sets, and meshes in 2D and 3D. Supports all PyVista mesh types.

  • pyansys: Pythonic interface to ANSYS result, full, and archive files

  • PVGeo: Python package of VTK-based algorithms to analyze geoscientific data and models. PyVista is used to make the inputs and outputs of PVGeo’s algorithms more accessible.

  • omfvista: 3D visualization for the Open Mining Format (omf). PyVista provides the foundation for this library’s visualization.

  • discretize: Discretization tools for finite volume and inverse problems. discretize provides toVTK methods that return PyVista versions of their data types for creating compelling visualizations.

  • pymeshfix: Python/Cython wrapper of Marco Attene’s wonderful, award-winning MeshFix software.

  • tetgen: Python Interface to Hang Si’s C++ TetGen Library

Authors

Please take a look at the contributors page and the active list of authors to learn more about the developers of PyVista.

Contributing

We absolutely welcome contributions and we hope that our Contributing Guide will facilitate your ability to make PyVista better. PyVista is mostly maintained on a volunteer basis and thus we need to foster a community that can support user questions and develop new features to make this software a useful tool for all users while encouraging every member of the commutinity to share their ideas. To learn more about contributing to PyVista, please see the Contributing Guide and our Code of Conduct.

Citing PyVista

There is a paper about PyVista!

If you are using PyVista in your scientific research, please help our scientific visibility by citing our work!

Sullivan et al., (2019). PyVista: 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK). Journal of Open Source Software, 4(37), 1450, https://doi.org/10.21105/joss.01450

BibTex:

@article{sullivan2019pyvista,
  doi = {10.21105/joss.01450},
  url = {https://doi.org/10.21105/joss.01450},
  year = {2019},
  month = {may},
  publisher = {The Open Journal},
  volume = {4},
  number = {37},
  pages = {1450},
  author = {C. Bane Sullivan and Alexander Kaszynski},
  title = {{PyVista}: 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit ({VTK})},
  journal = {Journal of Open Source Software}
}

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvista-0.25.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

pyvista-0.25.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file pyvista-0.25.3.tar.gz.

File metadata

  • Download URL: pyvista-0.25.3.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for pyvista-0.25.3.tar.gz
Algorithm Hash digest
SHA256 02e916ca94413b8c88c1cd83b37d6ec860bd91f07c70436777208954541d3889
MD5 ac3e4892c66cdb341fac6581d34fbe9d
BLAKE2b-256 ffd4e11e5cd4f0eff197a6d56cde45b4e75647b823fce370482145eeda72120e

See more details on using hashes here.

File details

Details for the file pyvista-0.25.3-py3-none-any.whl.

File metadata

  • Download URL: pyvista-0.25.3-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for pyvista-0.25.3-py3-none-any.whl
Algorithm Hash digest
SHA256 576479045bdee6843f5f50eb4c9844efbf5cd82022c789ce564956a2ea948428
MD5 76747438d425c23ecf3e9c3f0f3e1d96
BLAKE2b-256 d3b7332f102a65b07a4eeadd1882e3cdda6b913c0283128d4ebe08adbe9cb75c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page