ImageGridSource#
Examples#
Download Python source code | Download Jupyter notebook
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. |