texture_interpolate

property Brush.texture_interpolate

Set texture interpolation mode.

There are two modes:

  • False - NEAREST

  • True - LINEAR

Examples

Setup a brush with a texture.

>>> import pyvista
>>> from pyvista import examples
>>> chart = pyvista.Chart2D()
>>> plot = chart.area([0, 1, 2], [0, 0, 1], [1, 3, 2])
>>> plot.brush.texture = examples.download_puppy_texture()
>>> chart.show()
../../../../_images/pyvista-plotting-charts-Brush-texture_interpolate-1_00_00.png

Disable linear interpolation.

>>> plot.brush.texture_interpolate = False
>>> chart.show()
../../../../_images/pyvista-plotting-charts-Brush-texture_interpolate-1_01_00.png