pyvista.plotting.charts.Brush.texture_interpolate#

property Brush.texture_interpolate[ソース]#

テクスチャの補間モードを設定します.

2つのモードがあります:

  • False - NEAREST

  • True - LINEAR

ブラシにテクスチャを設定します.

>>> 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-1_00_00.png

線形補間を無効にします.

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