pyvista.ImageGridSource#
- class ImageGridSource(origin=None, extent=None, spacing=None)[source]#
Create an image of a grid.
Added in version 0.44.0.
- Parameters:
Examples
Create an image of a grid.
>>> import pyvista as pv >>> source = pv.ImageGridSource( ... extent=(0, 20, 0, 20, 0, 0), ... spacing=(1, 1, 1), ... ) >>> source.output.plot(cpos='xy')
Methods
Attributes
Get extent of the whole output image.
Get the origin of the data.
Get the output image as a ImageData.
Get the spacing of the grid.