Brush.texture_interpolate#
- property Brush.texture_interpolate[source]#
Set texture interpolation mode.
There are two modes:
False- NEARESTTrue- LINEAR
Examples#
Download Python source code | Download Jupyter notebook
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()
Disable linear interpolation.
>>> plot.brush.texture_interpolate = False
>>> chart.show()