# VTK Gradient Filter

**URL:** https://discourse.vtk.org/t/vtk-gradient-filter/2961
**Category:** Support
**Created:** [April 5, 2020, 2:32pm UTC](https://discourse.vtk.org/t/vtk-gradient-filter/2961 "2020-04-05T14:32:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [April 6, 2020, 1:44pm UTC](https://discourse.vtk.org/t/vtk-gradient-filter/2961/3 "2020-04-06T13:44:34Z")

</div>

If you are using Python, I highly recommend using PyVista: [https://docs.pyvista.org](https://docs.pyvista.org) which is a more Pythonic interface to VTK. And it has some more documentation on how to use the gradient filter:

- [https://docs.pyvista.org/core/filters.html#pyvista.DataSetFilters.compute\_gradient](https://docs.pyvista.org/core/filters.html#pyvista.DataSetFilters.compute_gradient)
- [https://docs.pyvista.org/examples/01-filter/gradients.html](https://docs.pyvista.org/examples/01-filter/gradients.html)

see also: [Gradient of Unstrucutred Grid in Python](https://discourse.vtk.org/t/gradient-of-unstrucutred-grid-in-python/2489)

---

_[View the full topic](https://discourse.vtk.org/t/vtk-gradient-filter/2961)._
