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()
../../../../_images/pyvista-plotting-charts-Brush-texture_interpolate-2_00_00.png

Disable linear interpolation.

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