pyvista.plotting.charts.Brush.texture_interpolate#

property Brush.texture_interpolate[source]#

Set texture interpolation mode.

There are two modes:

  • False - NEAREST

  • True - LINEAR

Examples

Set up a brush with a texture.

>>> import pyvista as pv
>>> from pyvista import examples
>>> chart = pv.Chart2D()
>>> plot = chart.area([0, 1, 2], [0, 0, 1], [1, 3, 2])
>>> plot.brush.texture = examples.download_puppy_texture()
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/212c9c250591c7f661484ed681995c8b4f8aaaa6/51671/_images/pyvista-plotting-charts-brush-texture_interpolate-2_00_00.png

Disable linear interpolation.

>>> plot.brush.texture_interpolate = False
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/212c9c250591c7f661484ed681995c8b4f8aaaa6/b84b1/_images/pyvista-plotting-charts-brush-texture_interpolate-2_01_00.png